Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <IfModule mod_expires.c>
  2. ExpiresActive on
  3.  
  4. # Perhaps better to whitelist expires rules? Perhaps.
  5. ExpiresDefault "access plus 1 month"
  6.  
  7. # cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
  8. ExpiresByType text/cache-manifest "access plus 0 seconds"
  9.  
  10.  
  11.  
  12. # Your document html
  13. ExpiresByType text/html "access plus 0 seconds"
  14.  
  15. # Data
  16. ExpiresByType text/xml "access plus 0 seconds"
  17. ExpiresByType application/xml "access plus 0 seconds"
  18. ExpiresByType application/json "access plus 0 seconds"
  19.  
  20. # RSS feed
  21. ExpiresByType application/rss+xml "access plus 1 hour"
  22.  
  23. # Favicon (cannot be renamed)
  24. ExpiresByType image/x-icon "access plus 1 week"
  25.  
  26. # Media: images, video, audio
  27. ExpiresByType image/gif "access plus 1 month"
  28. ExpiresByType image/png "access plus 1 month"
  29. ExpiresByType image/jpg "access plus 1 month"
  30. ExpiresByType image/jpeg "access plus 1 month"
  31. ExpiresByType video/ogg "access plus 1 month"
  32. ExpiresByType audio/ogg "access plus 1 month"
  33. ExpiresByType video/mp4 "access plus 1 month"
  34. ExpiresByType video/webm "access plus 1 month"
  35.  
  36. # HTC files (css3pie)
  37. ExpiresByType text/x-component "access plus 1 month"
  38.  
  39. # Webfonts
  40. ExpiresByType font/truetype "access plus 1 month"
  41. ExpiresByType font/opentype "access plus 1 month"
  42. ExpiresByType application/x-font-woff "access plus 1 month"
  43. ExpiresByType image/svg+xml "access plus 1 month"
  44. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  45.  
  46. # CSS and JavaScript
  47. ExpiresByType text/css "access plus 1 year"
  48. ExpiresByType application/javascript "access plus 1 year"
  49. ExpiresByType text/javascript "access plus 1 year"
  50.  
  51. <IfModule mod_headers.c>
  52. Header append Cache-Control "public"
  53. </IfModule>
  54.  
  55. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement