YSLow says certain CSS are not gzipped

Posted by rhand on Server Fault See other posts from Server Fault or by rhand
Published on 2014-06-12T07:51:27Z Indexed on 2014/06/12 9:26 UTC
Read the original article Hit count: 268

Filed under:
|
|

YSlow keeps on telling me files like http://www.example.com/wp-content/plugins/q-and-a/css/q-a-plus.css?ver=1.0.6.2 are not gzipped while the gzip test tool at Feed the Bot mentions I am all good:

Compressed? Yes
Compression type    gzip
Page size (Bytes)   32,493
Compressed size (Bytes) -1
Saving (Bytes)  32,494
Compression %   100%

I added this to my .htaccess:

# Gzip

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

#Deflate

<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>

The header for the file mentioned states:

CF-Cache-Status MISS
CF-RAY  13945df90a9a0c1d-AMS
Cache-Control   public, max-age=2592000
Connection  keep-alive
Content-Encoding    gzip
Content-Type    application/javascript
Date    Thu, 12 Jun 2014 07:34:38 GMT
Expires Sat, 12 Jul 2014 07:34:38 GMT
Last-Modified   Thu, 21 Feb 2013 01:29:18 GMT
Server  cloudflare-nginx
Transfer-Encoding   chunked
Vary    Accept-Encoding

Any ideas what I am missing here?

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about .htaccess