Search squid archive

Re: How can I expire cache object by Apache's expire time?

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

 



Calvin Park wrote:
Then...

How can I modify squid source file for it check cache-control and
expire header's value?



Squid works correctly already.

Set your web server and software to send the correct headers.



2009/9/18 Jeff Pang <pangj@xxxxxxxx>:
2009/9/18 Calvin Park <carrot@xxxxxxxxxxxx>:

HTTP/1.0 200 OK
Date: Tue, 01 Sep 2009 07:54:40 GMT
Server: thumbd-64bits/0.2.51
Content-Length: 2798
Content-Type: image/gif

>>> Expires: Tue, 08 Sep 2009 07:54:40 GMT ===> It's problem for me

... states that until 08 Sep the object is guaranteed to be correct and may be stored.

Last-Modified: Mon, 17 Aug 2009 04:40:33 GMT    ===> It's ok

... states when object was last changed.


>>> Cache-Control: max-age=604800

... 17th August + 1 week = 24th August.

Therefore the above states that the object may not be stored after the 24th August.



Squid will *always* obey the strict Expires: header when its present.

If there is no Expires: header Squid will obey the max-age instead. Using time since Last-Modified.

If there is no Expires: AND no max-age Squid will obey refresh_pattern ages from a calculation using on Last-Modified.



Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
  Current Beta Squid 3.1.0.13

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

  Powered by Linux