Ok, so basically i want to gzip my js and css files.
However the thing is:
- I would like to have a cached version of the gzipped version
- I want to set expiration headers
Option 1:
Use mod_rewrite together with a php script to do just that. Problem is that it uses php for serving the javascript files. Im not sure what that does to the speed.
Option 2:
Only use the apache configuration to do the above. Problem is that mod_deflate (apache 2.0) has no way of caching the zipped file. Was considering something like using two different files
Anyhow, what do you suggest?