On Mon, 16 Feb 2004, John Crossman wrote:

> Is it possible to refresh a single page within the Squid page cache with a certain 
> HTTP query args? 

Squid knows nothing about pages, only URLs.

If you want to refresh a URL in the cache then send a "reload" type 
request to Squid for the URL using either "Pragma: no-cache", 
"Cache-Control: no-cache" or "Cache-Control: max-age=0".

> For example, 
> //resource-10-12?squid-refresh=true"http://<host>/<path>/resource-10-12?squid-refresh=true
>  

This won't work as the URL is different. Squid will forward this to the 
server exacly as given.

> This would flush the cache with regards to the 1 - N page components associated with 
> the URL.

And as it is only your browser (and maybe publishing tool) who knows what 
a page is that won't work either.

Most browsers do however send the above mentioned "reload" type requests 
for all embedded items when you use the reload button.

Regards
Henrik

Reply via email to