Advertisement
jegtheme

htaccess

Jan 26th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. # 1 YEAR
  2. ExpiresActive On
  3. <FilesMatch "\.(otf|ico|pdf|flv|ttf|eot|svg|woff|mp3|ogg|mp4|webm|ogv)$">
  4. Header set Cache-Control "max-age=29030400, public"
  5. ExpiresDefault "access plus 1 years"
  6. Header unset Last-Modified
  7. Header unset ETag
  8. SetOutputFilter DEFLATE
  9. </FilesMatch>
  10.  
  11. # 1 MONTHS
  12. <FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
  13. Header set Cache-Control "max-age=2419200, public"
  14. ExpiresDefault "access plus 1 month"
  15. SetOutputFilter DEFLATE
  16. </FilesMatch>
  17.  
  18. <FilesMatch "\.(xml|txt|css|js)$">
  19. Header set Cache-Control "max-age=604800, public"
  20. ExpiresDefault "access plus 1 week"
  21. SetOutputFilter DEFLATE
  22. </FilesMatch>
  23.  
  24. # 30 MIN
  25. <FilesMatch "\.(html|htm|php)$">
  26. SetOutputFilter DEFLATE
  27. </FilesMatch>
  28.  
  29. AddType application/vnd.ms-fontobject .eot
  30. AddType font/ttf .ttf
  31. AddType font/otf .otf
  32. AddType application/x-font-woff .woff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement