Search squid archive

Re: find the cached pages by squid?

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

 



On 10/08/2014 2:56 a.m., Kinkie wrote:
> Hello Mark,
>   access.log contains the list of URLs requested by any client to the
> cache (if enabled, of course).
> If you wish, you can then verify whether they have been cached (and
> whether the cached entry is still considered valid) by requesting them
> (or at least their headers via the HEAD http verb) with the
> Cache-Control: only-if-cached HTTP header - you can do that with any
> command-line HTTP client such as curl or wget.

You have to disable strip_query_terms (set to "no") in order to do this
on dynamic domains. Also, when Vary: header exists in the server
response the content of the request headers listed in Vary matter.

An easier way is (probably) to use the same ACL from "cache deny blah"
on a line "access_log stdio:uncached.log blah". That uncached.log will
contain only the transactions which were forced not to cache.
 NP: This does not necessarily mean they would cache normally though.

Amos





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

  Powered by Linux