Quantcast
Channel: Why Apache doesn’t gzip css or js files which have parameters? - Server Fault
Viewing all articles
Browse latest Browse all 3

Why Apache doesn’t gzip css or js files which have parameters?

$
0
0

Some CSS & JS files are not compressed by apache with mod_deflate enabled. This files looks like this "[domain.name]/aggregator.css?..." or "[domain.name]/misc/jquery.js?..." in YSlow. The other CSS & JS without the "?" gets compressed. Kindly explain me how do I make apache compress this files also.

I added the following line on the .htaccess file

<IfModule mod_deflate.c><FilesMatch "\.(css|js|x?html?|php)$">           SetOutputFilter DEFLATE</FilesMatch></IfModule>

Thanks


Viewing all articles
Browse latest Browse all 3

Trending Articles