enable gzip compression for static files


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <IfModule mod_deflate.c>
  2. <FilesMatch "\\.(js|css|html|htm|php|xml)$">
  3. SetOutputFilter DEFLATE
  4. </FilesMatch>
  5. </IfModule>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.