Apache configuration and caching

Hal Burgiss hal at burgiss.net
Sat Sep 26 20:09:15 UTC 2009

Is this list a good place to troubleshoot Apache configuration problems? 

If not, somebody point me to a better list. The apache's user support list is
a black hole.

In any case, I have 2 servers (one is CentOS and Ubuntu 8.04), running very
similarly configured Apache servers. The problem is with the Expires headers
and caching of css and js content. The same syntax forces browser caching 
of all imgs, css and js on the CentOS server, but on the Ubuntu server only
the images are cached. All css and js requests are fetched reptitively as
fresh copies (according to Firebug and Google Page Speed). This is consistent.
What I have is essentially ...

 ExpiresActive On
 ExpiresByType text/css "access plus 6 months"

Firebug shows a GET request that returns a 200 response:

Response headers:

Date	Sat, 26 Sep 2009 19:54:17 GMT
Server	Apache
Last-Modified	Tue, 01 Sep 2009 19:18:37 GMT
Etag	"2df3-47289046a3d40"-gzip
Accept-Ranges	bytes
Cache-Control	max-age=5184000, public
Expires	Thu, 25 Mar 2010 19:54:17 GMT
Vary	Accept-Encoding
Content-Encoding	gzip
Content-Length	2546
Keep-Alive	timeout=15, max=249
Connection	Keep-Alive
Content-Type	text/css

Request Headers:

Host	www.stjamescourtartshow.com
User-Agent	Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
Accept	text/css,*/*;q=0.1
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	300
Connection	keep-alive
Referer	http://www.stjamescourtartshow.com/visitors-info/
If-Modified-Since	Tue, 01 Sep 2009 19:18:37 GMT
If-None-Match	"2df3-47289046a3d40"-gzip
Cache-Control	max-age=0

I am guessing its that last line, but have no idea how to make it go away. 

Thanks for any help or pointers to a better list.


More information about the ubuntu-server mailing list