Re: [squid-users] Cache refresh?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 16 Feb 2004 23:32:05 +0100 (CET)

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
Received on Mon Feb 16 2004 - 15:32:12 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST