New answers tagged compression
Put these lines in your .htaccess and PageSpeed Insights will see your gzip compression: <IfModule mod_deflate.c> <FilesMatch "\.(html|php|txt|xml|js|css)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> It works for my sites.
The method I use for HTML compression using PHP is documented quite well by David Walsh on his website: http://davidwalsh.name/php-output-buffers. If you're not using PHP I would think an equivalent solution would be available in your server-side language of choice. This isn't however something you can accomplish with just client-side code or by ...
Top 50 recent answers are included