-
1. Re: Wrong headers slowing www.jboss.org down
adamw Apr 12, 2008 9:56 AM (in response to tobias)Hello,
thanks for spotting this! You're right, we should be setting the expires header for some far-off date for image files - we'll change that on the next site update.
Luckily you don't download the images every time, as we check the if-modified-since header - so you get an empty reply with a 304 (not modified). But the request isn't needed in the first place, anyway.
Adam -
2. Re: Wrong headers slowing www.jboss.org down
tobias Apr 12, 2008 11:53 AM (in response to tobias)It's good to hear that this will be addressed in the next update.
My Wireshark log tells me, that the 304 stuff if not done for me. That would make sense since the Expires header is set to the past (same as the Last-modified).
Even worse is that for every single resource a new TCP connection has to be openend. I'd guess the TCP handshake takes even longer than retransmitting the small resources. -
3. Re: Wrong headers slowing www.jboss.org down
adamw Apr 14, 2008 4:13 AM (in response to tobias)Hello,
well, I get the following:wget --header='If-Modified-Since: Fri, 01 Jun 2007 01:41:08 GMT' http://www.jboss.org/file-access/default/theme/images/common/jbossorg_logo.gif--2008-04-14 10:12:11-- http://www.jboss.org/file-access/default/theme/images/common/jbossorg_logo.gif Resolving www.jboss.org... 64.74.196.163 Connecting to www.jboss.org|64.74.196.163|:80... connected. HTTP request sent, awaiting response... 304 Not Modified
So I think that the 304 is working. Anyway, we'll change the settings for expires soon.
Thanks,
Adam -
4. Re: Wrong headers slowing www.jboss.org down
tobias Apr 14, 2008 9:17 AM (in response to tobias)Adam, you are totally right that the 304 mechanism may be working.
The point is, that the resources are returned with a Expires header that is set to Last-modified. That means the Expires date is always in the past. Thus the browser immediately expires the resource and does not even try to use a If-Modified-Since. Therefor a slight improvement would be leaving the "Expires" headers away. It would be even better if Expires would be set to "request-time + some hours". Alternatively just a Cache-control max-age header.
Cheers! -
5. Re: Wrong headers slowing www.jboss.org down
adamw Apr 14, 2008 9:47 AM (in response to tobias)Hello,
Firefox (2.0, mac os x) does send the If-Modified-Since header, but you are most probably right that not all browser have to do so, confused by the Expires header. As I wrote, we'll fix that during the next site update.
Adam