[squid-users] Enforce caching expired object

From: 董晓青 <dongxiaoqing_at_cn.panasonic.com>
Date: Thu, 15 Oct 2009 09:28:52 +0800

Good day everyone.

Question:How to configure squid to enforce caching expired object?

Version:2.7 stable4(I'm not configured it as reverse squid.Just a normal proxy server.)

Example:
Object: http://d2.sina.com.cn/jianyu1/NIKE/nav_left.gif

head:
HTTP/1.0 200 OK
Server: Apache/2.0.50 (Unix)
Accept-Ranges: bytes
Cache-Control: max-age=300
Content-Length: 330
Date: Thu, 15 Oct 2009 01:11:16 GMT
Content-Type: image/gif
Expires: Thu, 15 Oct 2009 01:16:16 GMT
Last-Modified: Tue, 10 Jun 2008 02:55:44 GMT

My configure:
refresh_pattern -i (\.png|\.jpg|\.gif|\.bmp|\.swf) 525600 90% 5256000
(long enough?)
I tried to use override-expired,override-lastmod...etc
But all not working.

The squid log status was TCP_REFRESH_HIT.Means squid still think this object is stale and request to origin server to verify if the object is refresh.

So,can anyone guide?

Thanks a lot.
Received on Thu Oct 15 2009 - 01:29:03 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 15 2009 - 12:00:03 MDT