Re: [squid-users] How can I expire cache object by Apache's expire time?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 18 Sep 2009 19:01:48 +1200

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_at_arcor.de>:
>> 2009/9/18 Calvin Park <carrot_at_carrotis.com>:
>>
>>> 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
Received on Fri Sep 18 2009 - 07:01:59 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 18 2009 - 12:00:03 MDT