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

2011-05-12 Thread Leonardo Rodrigues



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.



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?





--


Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br

Minha armadilha de SPAM, NÃO mandem email
gertru...@solutti.com.br
My SPAMTRAP, do not email it






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

2011-05-12 Thread Amos Jeffries


 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