Search squid archive

Enforce caching expired object

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

 



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.






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

  Powered by Linux