I have a weird problem.
I have two exact website on two servers - dev and qa.
The dev one shows that my javascript size is 100kb, but the qa says 400kb. When I save the script on my local, it is 400kb.
I looked at the header of the javascript on the dev and it looks like..it's sending
"Content-Encoding gzip".
What is this and how do I enable this on the qa to make my script smaller?
This should mostly just be a matter of making sure that your modules and settings match between the two servers.
Run
a2enmod deflate
on the server that's not compressing to make sure the module's enabled, then check to be sure the configurations match (server config inapache2.conf
, site config insites-available
, and module config inmods-available/deflate.conf
), do aservice apache2 restart
to apply any changes, and you should see compression behave the same across the servers.