2

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?

Šime Vidas
  • 183
  • 2
  • 10
  • 1
    You can check performance issues using online tools like http://WebPageTest.org (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](http://dreamhost.com/servers/vps/). 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

1 Answers1

2

Yes, it means that its not gzip these files.

Test your setting using Yslow, https://addons.mozilla.org/en-US/firefox/addon/yslow/ . It will give you more guidelines to optimize your server.

Rishav
  • 220
  • 2
  • 10