Re: [WSG] how to force a cache bypass?

2012-08-03 Thread David Hucklesby

(See below)

On 8/2/12 9:50 PM, James Ducker wrote:

Second that. If you can version the filenames that's definitely the
most sure-fire way to make sure users don't cache old copies.

James


On 3 August 2012 14:39, Emmanuel Negri mailto:nna...@gmail.com>> wrote:

Sometimes a random query string does not work.

Changing the filename itself works 100% of the time.

Eg. style-.css

Manu

On 03/08/2012, at 1:25 PM, James Ducker mailto:james.duc...@gmail.com>> wrote:


Append some junk querystring to the end of the URL, like
example.com/index.html?20120803132400
. Every time it changes,
stuff will be refreshed. Wouldn't really recommend doing it for
regular pages because it makes the URLs look messy, but if you're
trying to refresh scripts or images, go nuts.

James


On 21 July 2012 03:22, Rob Crowther mailto:robe...@boogdesign.com>> wrote:

On 20/07/2012 17:47, coder wrote:

How can I make a web page appear as the latest version in all
browsers,
i.e., perform a cache bypass?  And I don't mean for me - I
mean for all
visitors to the page?  Is it possible?
??

Once it's cached in the browser there's not much you can do about
it, the browser will store the cache settings at the time when it
cached the page and if those settings say "don't check again for a
month" then, generally, it won't.

If you want the page to never be cached then you need to set the
expiry header.  With Apache servers this is quite straightforward
and can usually be done in the directory's .htaccess file:

ExpiresByType text/html "access plus 0 seconds"

This is example was take from HTML5 BoilerPlate:


https://github.com/h5bp/html5-__boilerplate/blob/__83f4f281866be1cf7f391738c53c44__8a5ac658e9/.htaccess#L233




Rob



You may be interested in this automated way of doing it:

 

--
Cordially,
David



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] how to force a cache bypass?

2012-08-02 Thread James Ducker
Second that. If you can version the filenames that's definitely the
most sure-fire way to make sure users don't cache old copies.

James


On 3 August 2012 14:39, Emmanuel Negri  wrote:

> Sometimes a random query string does not work.
>
> Changing the filename itself works 100% of the time.
>
> Eg. style-.css
>
> Manu
>
> On 03/08/2012, at 1:25 PM, James Ducker  wrote:
>
> Append some junk querystring to the end of the URL, like
> example.com/index.html?20120803132400. Every time it changes, stuff will
> be refreshed. Wouldn't really recommend doing it for regular pages because
> it makes the URLs look messy, but if you're trying to refresh scripts or
> images, go nuts.
>
> James
>
>
> On 21 July 2012 03:22, Rob Crowther  wrote:
>
>> On 20/07/2012 17:47, coder wrote:
>>
>>> How can I make a web page appear as the latest version in all browsers,
>>> i.e., perform a cache bypass?  And I don't mean for me - I mean for all
>>> visitors to the page?  Is it possible?
>>> ??
>>>
>> Once it's cached in the browser there's not much you can do about it, the
>> browser will store the cache settings at the time when it cached the page
>> and if those settings say "don't check again for a month" then, generally,
>> it won't.
>>
>> If you want the page to never be cached then you need to set the expiry
>> header.  With Apache servers this is quite straightforward and can usually
>> be done in the directory's .htaccess file:
>>
>> ExpiresByType text/html "access plus 0 seconds"
>>
>> This is example was take from HTML5 BoilerPlate:
>>
>> https://github.com/h5bp/html5-**boilerplate/blob/**
>> 83f4f281866be1cf7f391738c53c44**8a5ac658e9/.htaccess#L233
>>
>>
>> Rob
>>
>>
>> ***
>> List Guidelines: 
>> http://webstandardsgroup.org/**mail/guidelines.cfm
>> Unsubscribe: 
>> http://webstandardsgroup.org/**join/unsubscribe.cfm
>> Help: memberhelp@webstandardsgroup.**org
>> ***
>>
>>
>
>
> --
> *James Ducker*
> james.duc...@gmail.com
>  +61 404 838 470
>
>
>
> ***
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: memberh...@webstandardsgroup.org
> ***
>
>
> ***
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: memberh...@webstandardsgroup.org
> ***
>



-- 
*James Ducker*
james.duc...@gmail.com
 +61 404 838 470


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

Re: [WSG] how to force a cache bypass?

2012-08-02 Thread Emmanuel Negri
Sometimes a random query string does not work.

Changing the filename itself works 100% of the time. 

Eg. style-.css

Manu

On 03/08/2012, at 1:25 PM, James Ducker  wrote:

> Append some junk querystring to the end of the URL, like 
> example.com/index.html?20120803132400. Every time it changes, stuff will be 
> refreshed. Wouldn't really recommend doing it for regular pages because it 
> makes the URLs look messy, but if you're trying to refresh scripts or images, 
> go nuts.
> 
> James
> 
> 
> On 21 July 2012 03:22, Rob Crowther  wrote:
> On 20/07/2012 17:47, coder wrote:
> How can I make a web page appear as the latest version in all browsers,
> i.e., perform a cache bypass?  And I don't mean for me - I mean for all
> visitors to the page?  Is it possible?
> ??
> Once it's cached in the browser there's not much you can do about it, the 
> browser will store the cache settings at the time when it cached the page and 
> if those settings say "don't check again for a month" then, generally, it 
> won't.
> 
> If you want the page to never be cached then you need to set the expiry 
> header.  With Apache servers this is quite straightforward and can usually be 
> done in the directory's .htaccess file:
> 
> ExpiresByType text/html "access plus 0 seconds"
> 
> This is example was take from HTML5 BoilerPlate:
> 
> https://github.com/h5bp/html5-boilerplate/blob/83f4f281866be1cf7f391738c53c448a5ac658e9/.htaccess#L233
> 
> 
> Rob
> 
> 
> ***
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: memberh...@webstandardsgroup.org
> ***
> 
> 
> 
> 
> -- 
> James Ducker
> james.duc...@gmail.com
>  +61 404 838 470
> 
> 
> 
> ***
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: memberh...@webstandardsgroup.org
> ***


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***


Re: [WSG] how to force a cache bypass?

2012-08-02 Thread James Ducker
Append some junk querystring to the end of the URL, like
example.com/index.html?20120803132400. Every time it changes, stuff will be
refreshed. Wouldn't really recommend doing it for regular pages because it
makes the URLs look messy, but if you're trying to refresh scripts or
images, go nuts.

James


On 21 July 2012 03:22, Rob Crowther  wrote:

> On 20/07/2012 17:47, coder wrote:
>
>> How can I make a web page appear as the latest version in all browsers,
>> i.e., perform a cache bypass?  And I don't mean for me - I mean for all
>> visitors to the page?  Is it possible?
>> ??
>>
> Once it's cached in the browser there's not much you can do about it, the
> browser will store the cache settings at the time when it cached the page
> and if those settings say "don't check again for a month" then, generally,
> it won't.
>
> If you want the page to never be cached then you need to set the expiry
> header.  With Apache servers this is quite straightforward and can usually
> be done in the directory's .htaccess file:
>
> ExpiresByType text/html "access plus 0 seconds"
>
> This is example was take from HTML5 BoilerPlate:
>
> https://github.com/h5bp/html5-**boilerplate/blob/**
> 83f4f281866be1cf7f391738c53c44**8a5ac658e9/.htaccess#L233
>
>
> Rob
>
>
> ***
> List Guidelines: 
> http://webstandardsgroup.org/**mail/guidelines.cfm
> Unsubscribe: 
> http://webstandardsgroup.org/**join/unsubscribe.cfm
> Help: memberhelp@webstandardsgroup.**org
> ***
>
>


-- 
*James Ducker*
james.duc...@gmail.com
 +61 404 838 470


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

Re: [WSG] how to force a cache bypass?

2012-07-20 Thread Rob Crowther

On 20/07/2012 17:47, coder wrote:

How can I make a web page appear as the latest version in all browsers,
i.e., perform a cache bypass?  And I don't mean for me - I mean for all
visitors to the page?  Is it possible?
??
Once it's cached in the browser there's not much you can do about it, 
the browser will store the cache settings at the time when it cached the 
page and if those settings say "don't check again for a month" then, 
generally, it won't.


If you want the page to never be cached then you need to set the expiry 
header.  With Apache servers this is quite straightforward and can 
usually be done in the directory's .htaccess file:


ExpiresByType text/html "access plus 0 seconds"

This is example was take from HTML5 BoilerPlate:

https://github.com/h5bp/html5-boilerplate/blob/83f4f281866be1cf7f391738c53c448a5ac658e9/.htaccess#L233

Rob


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] how to force a cache bypass?

2012-07-20 Thread Danny Vose
Are! you again Bob,  we will have people complaining about off topic again lol

You can do this Bob

Place the following meta tag within the head of your HTML document. When used 
to refresh the current page, the syntax looks like this: It "should" work in 
all browsers but dont hold me to that and do a check mate. This tells the 
server to call up a new version of the page each time its requested. (or 
refreshed automatically in 600 seconds if they stay on the page)

   
Dan

  - Original Message - 
  From: coder 
  To: wsg@webstandardsgroup.org 
  Sent: Friday, July 20, 2012 5:47 PM
  Subject: [WSG] how to force a cache bypass?


  OK, this isn't about standards, but it's more interesting than knowing that 
folk are not in the office . . .

  How can I make a web page appear as the latest version in all browsers, i.e., 
perform a cache bypass?  And I don't mean for me - I mean for all visitors to 
the page?  Is it possible?

  ??


  Bob

  ***
  List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
  Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
  Help: memberh...@webstandardsgroup.org
  *** 

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***