June 23rd, 2012, 02:49 PM
Turning on GZip Compression for CSS and JS
How would I go about turning on GZip for css and js files only, via .htaccess and httpd.config?
Every method I've seem to find ends up de-linking my css files, so I end up with a non-styled site.
I'm running a second domain for all of my static files; that's the domain I've been uploading my .htaccess to.
Here's what I have right now, and according to Google PageSpeed it does nothing:
Header unset ETag
Header unset Last-Modified
Header set Cache-Control "max-age=864000, public"