Enable Gzip Compression Print

  • Compression, Gzip, .htaccess
  • 3

Gzip compression is enabled by adding some code to  .htaccess file. Open the file and add the below code

—————————————————–
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
—————————————————–




Save the .htaccess file and then refresh your webpage.

 
Check to see if your compression is working using the Gzip compression tool.
 


Was this answer helpful?

« Back