Advertisement
MarkdeScande

htaccess Tweaking Fresh

Aug 15th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <ifModule mod_php5.c>
  2. php_value zlib.output_compression on
  3. </ifModule>
  4. # Cache Control Settings for one week cache
  5. <FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  6. Header set Cache-Control "max-age=604800, public"
  7. </FilesMatch>
  8. <IfModule mod_deflate.c>
  9. <IfModule mod_filter.c>
  10. AddOutputFilterByType DEFLATE text/plain text/html application/x-httpd-php-source
  11. AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
  12. AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
  13. AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
  14. AddOutputFilterByType DEFLATE font/truetype application/x-font-ttf font/opentype application/x-font-otf
  15. </IfModule>
  16. </IfModule>
  17. <IfModule mod_expires.c>
  18. ExpiresActive On
  19. ExpiresByType image/jpg "access 1 year"
  20. ExpiresByType image/jpeg "access 1 year"
  21. ExpiresByType image/gif "access 1 year"
  22. ExpiresByType image/png "access 1 year"
  23. ExpiresByType text/css "access 1 month"
  24. ExpiresByType text/html "access 1 month"
  25. ExpiresByType application/pdf "access 1 month"
  26. ExpiresByType text/x-javascript "access 1 month"
  27. ExpiresByType application/x-shockwave-flash "access 1 month"
  28. ExpiresByType image/x-icon "access 1 year"
  29. ExpiresDefault "access 1 month"
  30. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement