httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Claridge <mclari...@rwa-net.co.uk>
Subject Re: [users@httpd] Image caching / Expiry times / 304s
Date Wed, 07 Jun 2006 12:13:37 GMT


on 06/06/2006 15:35 Joshua Slive said the following:

> On 6/6/06, Matthew Claridge <mclaridge@rwa-net.co.uk> wrote:
>
>>
>>
>> on 06/06/2006 15:16 Joshua Slive said the following:
>>
>> > On 6/6/06, Matthew Claridge <mclaridge@rwa-net.co.uk> wrote:
>> >
>> >> Apache does send a Cache-control header of "max-age=0", which if I'm
>> >> right means it isn't updatiing the expiry time?
>> >
>> >
>> > It means the content is marked as expired.  What mod_expires config
>> > are you using?
>> >
>> > Joshua.
>>
>> <Location /images/>
>>     <IfModule mod_expires.c>
>>         ExpiresActive On
>>         ExpiresByType image/jpg A432000
>>         ExpiresByType image/jpeg A432000
>>         ExpiresByType image/gif A432000
>>         ExpiresByType image/png A432000
>>         ExpiresByType image/ico A432000
>>     </IfModule>
>> </Location>
>
>
> Seems like you have something else weird going on.  The config used on
> www.apache.org is
>      ExpiresActive On
>      ExpiresDefault A86400
>
> And yet I get updated (non-zero) cache-control headers on 304 responses:
>
>> telnet www.apache.org 80
>
> Trying 192.87.106.226...
> Connected to www.apache.org.
> Escape character is '^]'.
> GET / HTTP/1.1
> Host: www.apache.org
> If-Modified-Since:  Thu, 01 Jun 2006 14:07:19 GMT
>
> HTTP/1.1 304 Not Modified
> Date: Tue, 06 Jun 2006 14:31:19 GMT
> Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7g
> ETag: "20122-331e-4152a2fa513c0"
> Expires: Wed, 07 Jun 2006 14:31:19 GMT
> Cache-Control: max-age=86400
>
> So it looks like you have something else in your config that is
> resetting your cache-control headers.
>
> Joshua.

Looks like this is actually a bug in the 2.0 branch - we're using RHEL, 
so we're stuck on the 2.0.46-x releases and this bug seems to have crept 
in to an early 2.0 release and been fixed in 2.0.49

http://issues.apache.org/bugzilla/show_bug.cgi?id=25123

What a waste of time. Sorry. Thanks for your help though.

Matt

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message