Re: [squid-users] Purging cache objects

From: N3O <strutter79_at_gmail.com>
Date: Mon, 16 May 2011 10:14:51 -0300

Amos

One thing I'm not 100% clear on. If we hold down the shift key and the
refresh, does that also clear the object from cache, or does it just
tell the squid server to by-pass the cache for this request?
Thanks!

On Mon, Apr 18, 2011 at 1:26 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On Sun, 17 Apr 2011 23:01:38 -0300, N3O wrote:
>>
>> Hi
>>
>> Is it possible to purge something from the cache via the CacheMgr.cgi
>> interface? I need to  quickly remove any incorrect content from a
>> website that uses two reverse proxies as a caching layer..
>> thanks!
>
> Not really. That is still on the wishlist.
>
>
> Holding CTRL down while clicking the reload button in your browser will
> clear out all objects for that page from every proxy in the path. However
> this requires an HTTP standards-compliant proxy. Proxies using the
> refresh_pattern override-* or ignore-* which warn about standards compliance
> can block the updates. As can the http_port "ignore-cc" option on
> reverse-proxies (thus a separate unflagged management port is useful on
> reverse proxies).
>
>
> If you have PURGE access permitted you can send a PURGE request for the
> relevant URL.
>
>  squidclient -m PURGE -H '$vary_headers' $url
>
> where $url is the URL being purged, and $vary_headers are what the browser
> sent for each Vary: listed header to get the object cached. Recent releases
> will reveal what those where in the cachemgr object report, otherwise its a
> blind guess.
>
>
> Alternatively you could use the squidpurge tool to find and remove things.
>
> Amos
>
>
Received on Mon May 16 2011 - 13:14:58 MDT

This archive was generated by hypermail 2.2.0 : Tue May 17 2011 - 12:00:02 MDT