WebPagetest Forums
GZIP js & css - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: GZIP js & css (/showthread.php?tid=333)



GZIP js & css - MarcelE - 08-12-2010 05:25 PM

In the results of webpagetest the results of gzip seem to be okay.
But Google Webmaster tools say, that I should gzip js and css also.
Should I?


RE: GZIP js & css - pmeenan - 08-12-2010 08:48 PM

Check the headers and make sure WebPagetest is reporting correctly but I would expect it is (haven't seen a case where it isn't). If your compression is done by a BrowserMatch rule it's possible that the Webmaster tools bot is being excluded.


RE: GZIP js & css - MarcelE - 08-13-2010 12:18 AM

I don't have such rules (should I?).

This is what I have:
AddOutputFilterByType DEFLATE text/plain text/html text/xml
AddOutputFilterByType DEFLATE text/css text/javascript text/x-js
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript application/x-javascript

Is that alright?
Is it correct for js and css?

Thanks!


RE: GZIP js & css - pmeenan - 08-13-2010 01:03 AM

Those look fine (BrowserMatch was the only thing that jumped out at me as to why Google may see it differently). I wouldn't necessarily worry about the list of recommendations on the webmaster tools portal - focus more on the time chart which is what they are looking at (as best as I can tell) and is what your users are actually seeing across your whole site.

Wouldn't hurt to run you page through YSlow and Pagespeed just to be sure (in Firefox) but if there really is a problem it's probably on a different page.


RE: GZIP js & css - sajal - 08-14-2010 04:07 AM

I think its an old bug with Webmaster Tools, when it sees js and css embedded from other google services (adsense, analytics, etc) ....

If other tools say your gzip is fine then its ok...

http://www.google.com/support/forum/p/Webmasters/thread?tid=7779c9e46ad20de0&hl=en


RE: GZIP js & css - jklein - 08-17-2010 06:12 AM

I've also found this link to be extremely helpful when you are trying to determine if a file is gzipped from outside your own network (if it is going through a load balancer or something like that) and you want an instant result.

http://www.whatsmyip.org/http_compression/