Re: [squid-users] Best method to refresh individual file

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 13 May 2011 15:32:45 +1200

> Em 12/05/11 17:48, Andy Nagai escreveu:
>> What is the best way to make a single css or .js file stale so can
>> immediately push changed file to client browser? The only way is to
>> change
>> the filename each time?
>>
>>
>
>

On 13/05/11 10:59, Leonardo Rodrigues wrote:
>
> squidclient -m PURGE http://www.domain.com/something.js
>
> will promptly exclude that file from squid caches and force a new fetch
> on the next access.
>

Or:

  squidclient -H 'Cache-Control: max-age=0\n'
http://example.com/something.js

Will force an immediate update of every HTTP compliant cache along the
path. This is also performed with a web browser holding Ctrl-key down
while clicking Refresh the button (Shift+Refresh on some browsers).

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.12
   Beta testers wanted for 3.2.0.7 and 3.1.12.1
Received on Fri May 13 2011 - 03:32:59 MDT

This archive was generated by hypermail 2.2.0 : Fri May 13 2011 - 12:00:03 MDT