Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <IfModule mod_deflate.c>
  2.  
  3. # Force compression for mangled headers.
  4. <IfModule mod_setenvif.c>
  5. <IfModule mod_headers.c>
  6. SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
  7. RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
  8. </IfModule>
  9. </IfModule>
  10.  
  11. # Compress all output labeled with one of the following MIME-types
  12. # (for Apache versions below 2.3.7, you don't need to enable `mod_filter`
  13. # and can remove the `<IfModule mod_filter.c>` and `</IfModule>` lines
  14. # as `AddOutputFilterByType` is still in the core directives).
  15. <IfModule mod_filter.c>
  16. AddOutputFilterByType DEFLATE application/atom+xml \
  17. application/javascript \
  18. application/json \
  19. application/ld+json \
  20. application/rss+xml \
  21. application/vnd.ms-fontobject \
  22. application/x-font-ttf \
  23. application/x-web-app-manifest+json \
  24. application/xhtml+xml \
  25. application/xml \
  26. font/opentype \
  27. image/svg+xml \
  28. image/x-icon \
  29. text/css \
  30. text/html \
  31. text/plain \
  32. text/x-component \
  33. text/xml
  34. </IfModule>
  35.  
  36. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement