httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsffd fdsfdfd <qnxuse...@yahoo.it>
Subject [users@httpd] Cache headers when 304
Date Mon, 24 Nov 2003 12:01:05 GMT
I made a lot of test with apache 2.0.48 compiled on
HP-UX 11.00 and with the Apache included in
MandrakeLinux 9.1.

When I do a GET and obtain a 200, in the reply there
are the cache headers, but when the reply is 304 there
is no way have theese headers. So when the browser's
cache expires, the expire-date is not updated any
more. For each page I obtain a 304 for each element
for ever...

Example:

the request:

GET /test.gif HTTP/1.1
Accept: */*
Accept-Language: it
Accept-Encoding: gzip, deflate
If-modified-since: Thu, 20 Nov 2003 11:54:42 GMT
If-None-Match: "12a-a0006480"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0)
Host: 10.254.3.20
Connection: Keep-Alive

the 304 (bowser's cache is not updated):

HTTP/1.1 304 Not Modified
Date: Fri, 21 Nov 2003 09:40:43 GMT
Server: Apache
Connection: Keep-Alive
Keep-Alive: timeout=10, max=8
ETag: "12a-a0006480"


the 200 (browser-cache is updated):

HTTP/1.1 200 OK
Date: Fri, 21 Nov 2003 09:40:43 GMT
Server: Apache
Last-Modified: Thu, 20 Nov 2003 11:54:42 GMT
ETag: "12a-a0006480"
Accept-Ranges: bytes
Content-Length: 298
Cache-Control: max-age=86400
Expires: Sat, 22 Nov 2003 09:40:33 GMT
Keep-Alive: timeout=10, max=10
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
Data (298 bytes)

My images have max-age 3 day: if a client empty its
cache, during the first 3 day it doesn't make any
request for the images. After the 3rd day the browser
make a GET for every images, receive a 304 but not
update the expire-time. I tried with IIS 5 and the
expire headers are present both with 200 and 304 so
the browser can keep up to date its cache.

Can someone help me?

Fabio

______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/

---------------------------------------------------------------------
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