Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.71 KB | None | 0 0
  1. <IfModule mod_expires.c>
  2. ExpiresActive On
  3. AddType application/vnd.ms-fontobject .eot
  4. AddType application/x-font-ttf .ttf
  5. AddType application/x-font-opentype .otf
  6. AddType application/x-font-woff .woff
  7. AddType application/x-font-woff2 .woff2
  8. AddType image/svg+xml .svg
  9. ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
  10. ExpiresByType application/x-font-ttf "access plus 1 year"
  11. ExpiresByType application/x-font-opentype "access plus 1 year"
  12. ExpiresByType application/x-font-woff "access plus 1 year"
  13. ExpiresByType application/x-font-woff2 "access plus 1 year"
  14. ExpiresByType image/svg+xml "access plus 1 year"
  15. ExpiresByType image/jpg "access plus 1 year"
  16. ExpiresByType image/jpeg "access plus 1 year"
  17. ExpiresByType image/gif "access plus 1 year"
  18. ExpiresByType image/png "access plus 1 year"
  19. ExpiresByType text/css "access plus 1 month"
  20. ExpiresByType application/pdf "access plus 1 month"
  21. ExpiresByType text/x-javascript "access plus 1 month"
  22. ExpiresByType application/x-shockwave-flash "access plus 1 month"
  23. ExpiresByType image/x-icon "access plus 1 year"
  24. ExpiresDefault "access plus 2 days"
  25. </IfModule>
  26. ## EXPIRES CACHING ##
  27.  
  28. ##Caching for mod_headers##
  29. <IfModule mod_headers.c>
  30.    Header set Connection keep-alive
  31.    <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf|woff|woff2)$">
  32.    Header set Cache-Control "max-age=2678400, public"
  33.    </filesmatch>
  34.    <filesmatch "\.(html|htm)$">
  35.    Header set Cache-Control "max-age=7200, private, must-revalidate"
  36.    </filesmatch>
  37.    <filesmatch "\.(pdf)$">
  38.    Header set Cache-Control "max-age=86400, public"
  39.    </filesmatch>
  40.    <filesmatch "\.(js)$">
  41.    Header set Cache-Control "max-age=2678400, private"
  42.    </filesmatch>
  43. </IfModule>
  44. ## EXPIRES CACHING ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement