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 have DreamHost VPS hosting, the server is Apache. When I load my web-site in the browser, and inspect the HTTP reqests/responses in my browser's dev tools, I can see that my browser sends

Accept-Encoding    gzip, deflate

in all HTTP requests it makes (for all file types). However, when I inspect the HTTP responses, I see this header for the main HTML file:

Content-Encoding    gzip

but this header is not present in HTTP responses for my JS, CSS, and image files. Does this mean that my server doesn't GZIP these types of files?

share|improve this question
You can check performance issues using online tools like (click the Performance Review tab after running the test). If you need help configuring mod_gzip for Apache, you're best bet is to post your current configuration. We have several people who know mod_gzip inside and out. – Chris S Dec 19 '12 at 15:54
@ChrisS I've done that test. It indicates that my js, and css files are not being gzipped. I'll have to sort this out with my hosting provider. I have managed hosting, so I'm not sure how much I am able to configure myself; I didn't notice any "GZIP" options in my "panel". – Šime Vidas Dec 19 '12 at 16:10
Ah, so you don't have a VPS then... You just have managed hosting. That does make a difference. – Chris S Dec 19 '12 at 16:18
@ChrisS As far as I know, I have VPS hosting. I wrote "managed", because I didn't have to configure anything, i.e. it came pre-configured. DreamHost writes that it provides "High Level of Control", so I guess it's not managed then. – Šime Vidas Dec 19 '12 at 16:54

Yes, it means that its not gzip these files.

Test your setting using Yslow, . It will give you more guidelines to optimize your server.

share|improve this answer
YSlow doesn't seem to work in my Firefox -.-. I have the latest versions of both Firefox, and YSlow plug-in. – Šime Vidas Dec 19 '12 at 15:45
Yslow is available for chrome as well. – Rishav Dec 19 '12 at 15:49

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.