SHARE
TWEET

gzip

a guest Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # START GZIP COMPRESSION
  2. <IfModule mod_deflate.c>
  3. <IfModule mod_headers.c>
  4. Header append Vary User-Agent env=!dont-vary
  5. </IfModule>
  6. <IfModule mod_filter.c>
  7. AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
  8. <IfModule mod_mime.c>
  9. # DEFLATE by extension
  10. AddOutputFilter DEFLATE js css htm html xml
  11. </IfModule>
  12. </IfModule>
  13. </IfModule>
  14. # END GZIP COMPRESSION
  15.  
  16. # START GZIP COMPRESSION on Apache webservers
  17. AddOutputFilterByType DEFLATE text/plain
  18. AddOutputFilterByType DEFLATE text/html
  19. AddOutputFilterByType DEFLATE text/xml
  20. AddOutputFilterByType DEFLATE text/css
  21. AddOutputFilterByType DEFLATE application/xml
  22. AddOutputFilterByType DEFLATE application/xhtml+xml
  23. AddOutputFilterByType DEFLATE application/rss+xml
  24. AddOutputFilterByType DEFLATE application/javascript
  25. AddOutputFilterByType DEFLATE application/x-javascript
  26. # END GZIP COMPRESSION on Apache webservers
RAW Paste Data
Top