[squid-users] refresh_pattern problem, cacheable page not appearing in cache?

From: Oscar Rylin <oscar@dont-contact.us>
Date: Tue, 22 Nov 2005 14:18:09 +0100

Hi,
I've been trying to get Squid 2.5.STABLE12 to cache a bunch of PHP-generated
sites (http accelerator mode).
The images are cached without a problem; but the pages that are generated
on-the-fly by PHP don't get cached.
access.log lists the file as a 200 OK, throws me a TCP_MISS:DIRECT

cacheability tells me:

The following server's clock appears to be inaccurate. This can cause
difficulties in caching its content. Please ask the administrator to
synchronise its clock (this may also be caused by a proxy between you and
the Web server).

    * www.<sitename>.com - 6 min 4 sec behind

...

This object will be fresh for 10 min. It doesn't have a validator present.
It doesn't have a Content-Length header present, so it can't be used in a
HTTP/1.0 persistent connection.

Headers sent to Squid (followed by headers sent back from Squid are):

GET / HTTP/1.1
Host: www.<sitename>.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 200 OK
Date: Tue, 22 Nov 2005 13:14:56 GMT
Server: Apache/1.3.33 (Unix) mod_ssl/2.8.24 OpenSSL/0.9.8
Expires: Tue, 22 Nov 2005 13:24:56 GMT
Cache-Control: public
Content-Type: text/html
X-Cache: MISS from local
Connection: close

So there are no cookies being set or so.

Httpd_accel_with_proxy is on

My refresh_patterns are:
refresh_pattern \.gif$ 20 100% 60 override-expire
ignore-reload
refresh_pattern \.jpg$ 20 100% 60 override-expire
ignore-reload
refresh_pattern \.png$ 20 100% 60 override-expire
ignore-reload
refresh_pattern . 5 100% 10 ignore-reload
refresh_pattern ^http 5 100% 10 ignore-reload

I'm going balder by the minute.. any ideas?

Best regards,
Oscar Rylin
Received on Tue Nov 22 2005 - 06:18:01 MST

This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:10 MST