.htaccess 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <IfModule mod_expires.c>
  2. ExpiresActive On
  3. ExpiresDefault "access plus 1 days"
  4. ExpiresByType text/html "access plus 5 minutes"
  5. ExpiresByType text/xml "access plus 6 hours"
  6. ExpiresByType text/css "access plus 1 weeks"
  7. ExpiresByType text/javascript "access plus 1 weeks"
  8. ExpiresByType application/javascript "access plus 1 weeks"
  9. ExpiresByType application/x-javascript "access plus 1 weeks"
  10. ExpiresByType text/ecmascript "access plus 1 weeks"
  11. ExpiresByType image/gif "access plus 1 years"
  12. ExpiresByType image/png "access plus 1 years"
  13. ExpiresByType image/jpeg "access plus 1 years"
  14. ExpiresByType image/ico "access plus 1 years"
  15. ExpiresByType image/icon "access plus 1 years"
  16. ExpiresByType image/x-icon "access plus 1 years"
  17. ExpiresByType video/x-flv "access plus 1 years"
  18. ExpiresByType video/quicktime "access plus 1 years"
  19. ExpiresByType application/x-shockwave-flash "access plus 1 years"
  20. ExpiresByType application/pdf "access plus 1 years"
  21. </IfModule>
  22. # gzip Compression if availiable
  23. AddEncoding gzip .gzip
  24. <IfModule mod_deflate.c>
  25. AddOutputFilterByType DEFLATE text/plain
  26. AddOutputFilterByType DEFLATE text/html
  27. AddOutputFilterByType DEFLATE text/xml
  28. AddOutputFilterByType DEFLATE text/css
  29. AddOutputFilterByType DEFLATE text/javascript
  30. AddOutputFilterByType DEFLATE application/xml
  31. AddOutputFilterByType DEFLATE application/xhtml+xml
  32. AddOutputFilterByType DEFLATE application/rss+xml
  33. AddOutputFilterByType DEFLATE application/javascript
  34. AddOutputFilterByType DEFLATE application/x-javascript
  35. AddOutputFilterByType DEFLATE application/x-shockwave-flash
  36. </IfModule>