Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to add two things:

ExpiresActive On 
ExpiresByType text/css "access plus 30 day"


AddOutputFilterByType DEFLATE text/css

but in either case it does not show up compressed or have a later expiration date. I used Firebug to check, and cleared the cache to make sure. The mime type is in there. Thanks.


Ive also added the mime type manually but it doesn't change anything:

AddType text/css css
share|improve this question

My first guess in this case would be that your Apache is serving your CSS files as something other than text/css. My analogous configuration lines in both cases include a lot more types:

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript

Try putting some other MIME types in the configuration and see if they get compressed/expired properly.

share|improve this answer
Thanks, it seems like some other stuff gets compressed, but not text/css (or javascript, but i figure it's the same issue). On Firebug it definitely sends it as text/css though. – Tim Feb 7 '11 at 20:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.