Advertisement
Guest User

htaccess

a guest
Feb 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. AddDefaultCharset UTF-8
  2. <IfModule mod_expires.c>
  3. ExpiresActive On
  4. ExpiresDefault "access 7 days"
  5. ExpiresByType application/javascript "access plus 1 year"
  6. ExpiresByType text/javascript "access plus 1 year"
  7. ExpiresByType text/css "access plus 1 year"
  8. ExpiresByType text/html "access plus 7 day"
  9. ExpiresByType text/x-javascript "access 1 year"
  10. ExpiresByType image/gif "access plus 1 year"
  11. ExpiresByType image/jpeg "access plus 1 year"
  12. ExpiresByType image/png "access plus 1 year"
  13. ExpiresByType image/jpg "access plus 1 year"
  14. ExpiresByType image/x-icon "access 1 year"
  15. ExpiresByType application/x-shockwave-flash "access 1 year"
  16. </IfModule>
  17.  
  18. <ifModule mod_headers.c>
  19. <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
  20. Header set Cache-Control "max-age=2592000, public"
  21. </filesMatch>
  22. <filesMatch "\.(css|js)$">
  23. Header set Cache-Control "max-age=2592000, public"
  24. </filesMatch>
  25. <filesMatch "\.(xml|txt)$">
  26. Header set Cache-Control "max-age=172800, public, must-revalidate"
  27. </filesMatch>
  28. <filesMatch "\.(html|htm|php)$">
  29. Header set Cache-Control "max-age=172800, private, must-revalidate"
  30. </filesMatch>
  31. </ifModule>
  32. <IfModule mod_setenvif.c>
  33. BrowserMatch "MSIE" force-no-vary
  34. BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
  35. </IfModule>
  36.  
  37.  
  38.  
  39. RewriteEngine on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement