httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Brasilino" <>
Subject [users@httpd] Strange Apache2 304 return code when using mod_cache with a IE 6 request
Date Wed, 19 Dec 2007 15:45:26 GMT
Hi Folks:

I'm using apache 2.0.59 with mod_cache and mod_disk_cache to cache
a dynamic generated content for 1 minute. The strange thing is
that it hapens only with IE 6, not 7 or other (better) browser.
The background server is sending
Expires and Cache-Control headers according:

Expires: <actual GMT time + 1 minute>
Cache-Control: max-age=60, must-revalidate

When using mod_cache, I've configured (In a virtual host context):

 RewriteRule ^/(.*)

 CacheEnable disk /
 CacheRoot "/var/cache/apache2/intranet"
 CacheSize 307200
 CacheGcInterval 1
 CacheMaxExpire 300
 CacheDefaultExpire 300
 CacheLastModifiedFactor 0.1
 CacheForceCompletion 100

 The problem occur only with IE 6 requests:

GET / HTTP/1.1

Accept: */*

Accept-Language: pt-br

Accept-Encoding: gzip, deflate

If-Modified-Since: Tue, 24 Oct 2006 22:28:29 GMT; length=44412

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)

Host: intranet

Connection: Keep-Alive

X-NovINet: v1.2

HTTP/1.1 304 Not Modified

Date: Tue, 18 Dec 2007 18:46:03 GMT

Server: Apache/2.0.59 (Linux/SuSE)

Connection: Keep-Alive

Keep-Alive: timeout=15, max=100

Expires: Tue, 18 Dec 2007 18:47:01 GMT

Cache-Control: max-age=60, must-revalidate

Vary: Accept-Encoding,Accept-Language

Of course my content has modified since "Tue, 24 Oct 2006 22:28:29 GMT" !!!
And the 'Expires' header is right (actual time + 1 minute).

I've tried to take out IFS header from request configuring apache with:

RequestHeader unset If-Modified-Since

With no success.....

What's wrong? Sorry but I can't figure out...

Thanks a lot in advance
Lucas Brasilino

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message