httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Brasilino" <lucas.brasil...@gmail.com>
Subject [users@httpd] Re: Strange Apache2 304 return code when using mod_cache with a IE 6 request
Date Wed, 26 Dec 2007 13:26:39 GMT
Hi!

The problem was that the backend server was sending a
wrong 'Last-Modified' header, which has done IE 6.0
confused. So, be aware! :)

regads
Lucas Brasilino

2007/12/19, Lucas Brasilino <lucas.brasilino@gmail.com>:
> 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 ^/(.*)
> http://localhost:9080/VirtualHostBase/http/intranet.mydomain.com:80/intranets/restrito/VirtualHostRoot/$1
> [L,P]
>
>  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: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