[jboss-dev-forums] [Design of JBoss Labs] - Wrong headers slowing www.jboss.org down
Tobias
do-not-reply at jboss.com
Fri Apr 11 11:19:28 EDT 2008
Hi!
Pages from www.jboss.org are served with unoptimized response headers. Is there a reason for this or is this just an oversight?
Firebug shows me this for http://www.jboss.org/projects/:
http://www.jboss.org/projects/
Content-Type: text/html;charset=UTF-8
| Connection: close
| Transfer-Encoding: chunked
|
Ok, no keep-alice it seems. That's a bit weird, but ok.
http://www.jboss.org/file-access/default/theme/images/common/bkgheader_left.gif
Last-Modified: Fri, 01 Jun 2007 01:41:08 GMT
| Expires: Fri, 01 Jun 2007 01:41:08 GMT
| Content-Type: image/gif
| Connection: close
|
Again no keep-alive, ok. But Expires set to Last-Modified for a static gif?
Either set Expires to the future or better include a Cache-Control: max-age header.
http://www.jboss.org/file-access/default/theme/images/common/bkgheader_noleft.gif
Last-Modified: Fri, 01 Jun 2007 01:41:08 GMT
| Expires: Fri, 01 Jun 2007 01:41:08 GMT
| Content-Type: image/gif
| Connection: close
|
Again, no proper caching for static gifs.
For me fetching 10-30 static resources again and again for each page makes the whole thing really slow.
If you look into this, please also check the headers for the MIME-types for PNGs, JPG/jpegs and CSS.
Ciao,
Tobias
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143469#4143469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143469
More information about the jboss-dev-forums
mailing list