Search squid archive

Re: Why so many 304 resposne for MSIE ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20.01.09 10:50, howard chen wrote:
> Why so many 304 resposne for MSIE ?
> 
> I am serving a static JS file, with Squid as reverse proxy to my
> Apache 1.x, which has the following response to the client:
> 
> =================
> 
> Status=OK - 200
> Last-Modified=Thu, 11 Oct 2007 05:04:34 GMT
> Accept-Ranges=bytes
> Content-Length=27157
> Content-Type=application/x-javascript
> Date=Tue, 20 Jan 2009 02:36:50 GMT
> Expires=Fri, 30 Jan 2009 02:36:50 GMT
> Cache-Control=max-age=864000
> Age=14
> X-Cache=HIT from webcache-1.example.com
> Connection=keep-alive
> 
> 
> =================
> 
> You see expire is set to 10 years from now, so I will expect only a

10 days, not years...

> very little of 304 (only user press F5 to reload)

Haven't you mistaken 304 for 200 ? the 200 means that the server is sending
the whole content to the client, while 304 means server is telling the
client that the content on client is still fresh. So with big expire time
you could expect much of 304's and little of 200's.

Note that the client's cache can be also purged, objects in it can expire
because of cache size.

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro$oft random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux