I’ve a local wamp setup and installed the deflate_module in apache.
I’ve also set up the following rule in .htaccess.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
</IfModule>
But how can I test if it’s working – how can I tell if the files are being gzipped?
Thanks!
use netcat and send an
Accept-Encoding: gzip,deflate. If compressed mumbo-jumbo is returned, then your files are gzipped.Example:
Don’t forget to add two newlines at the end.