Search squid archive

Re: Best method to refresh individual file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> 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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux