 DanielPremium,MVM join:2000-06-26 San Francisco, CA | Why Isn't my CSS Compressed? [REWARD] I'm trying to figure out why my CSS isn't compressed at »danielmiessler.com/css/danielmiessler.css, and nothing I try seems to work.
I've been trying to use W3 Total Cache to compress it (gzip), but that just results in a download rather than a display of the file. I have compression enabled on the server, and some sites like »www.websiteoptimization.com/serv···analyze/ show the CSS as properly compressed.
But when I test the site in other tools they complain that the CSS is not compressed.
I've done some reading on it and some claim it's a Chrome problem, others say it's due to my site being XHTML Strict (I've tried changing to Transitional and it didn't help).
Anyway, I'm offering $50 via Paypal for the solution that solves this for me. I lack the time to dive into it and you guys here seem like you should knock it out pretty quick. -- danielmiessler.com -- grep understanding |
|
 Reviews:
·net2phone
| I threw a few different browsers at it, the CSS was compressed as expected. I don't see the issue. While the total uncompressed data is 17482 bytes, the compressed size transmitted is 3420.
HTTP/1.1 200 OK Date: Fri, 03 Sep 2010 04:03:31 GMT Server: Apache/2.2.14 (Ubuntu) Last-Modified: Fri, 03 Sep 2010 02:53:53 GMT ETag: "444a-48f520a7e9240" Accept-Ranges: bytes Cache-Control: public, must-revalidate, proxy-revalidate Expires: Fri, 03 Sep 2010 04:03:31 GMT Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Pragma: public X-Powered-By: W3 Total Cache/0.9.1.1 Content-Length: 3420 Keep-Alive: timeout=2, max=100 Connection: Keep-Alive Content-Type: text/css
The only way I could get it uncompressed is by using a proxy to remove the 'Accept-Encoding:' HTTP header, or to remove the gzip option that it sends to your server. So to me it seems that it's working properly.
said by Daniel:But when I test the site in other tools they complain that the CSS is not compressed. Maybe the issue is with the other tools.
PS - (unrelated) - Apparently you've configured Apache for a TCP Keep-Alive timeout of 2 seconds, which seems a bit on the short side. |
|
|
|
 | reply to Daniel It's showing as compressed on this end too. By other tools, are they perhaps complaining that your css file isn't "minified" and not actually complaining about gzip? -- Filled with magic and pixie dust |
|
 DanielPremium,MVM join:2000-06-26 San Francisco, CA | reply to Daniel Ok, I think the issue is actually when I attempt to place the CSS on a CDN (I use Amazon). That's what I was trying to do and it just kept failing (downloading instead of displaying).
Do you guys know why this happens, and if it's possible to get around? -- danielmiessler.com -- grep understanding |
|