Re: [squid-users] Squid tries to cache files but can`t?

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 13 Nov 2006 13:01:59 +0100

mån 2006-11-13 klockan 14:17 +0300 skrev samick el-ride:

> # sort -r -n +4 -5 /var/log/squid/access.log | awk '{print $5, $7}' | head -25
> 28693496 http://portal.rm:7780/docs/media?
> 4869232 http://portal.rm:7780/docs/media?
> 4027525 http://portal.rm:7780/docs/media?

> Squid caches the URL "http://portal.rm:7780/docs/media?" but not the
> file "http://portal.rm:7780/docs/media?id=13397". The file is not
> cached.

Squid by default strips query terms from the access.log for security
reasons as these may contain passwords or other sensitive details. This
does not mean that the URL as such was truncated, just that Squid did
not include the query terms in access.log..

More likely either

a) You still have the cache directives blocking cacheing of query URLs
in your squid.conf.

or

b) The responses sent by the server isn't really cacheable. See the
cacheability check engine for details about the server response.

most likely both contributes to making the object not cached..

Regards
Henrik

Received on Mon Nov 13 2006 - 05:02:10 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:03 MST