Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. # RSS feed
  2. ExpiresByType application/rss+xml "access plus 1 hour"
  3.  
  4. # Favicon (cannot be renamed)
  5. ExpiresByType image/x-icon "access plus 1 week"
  6.  
  7. # Media: images, video, audio
  8. ExpiresByType image/gif "access plus 1 month"
  9. ExpiresByType image/png "access plus 1 month"
  10. ExpiresByType image/jpg "access plus 1 month"
  11. ExpiresByType image/jpeg "access plus 1 month"
  12. ExpiresByType video/ogg "access plus 1 month"
  13. ExpiresByType audio/ogg "access plus 1 month"
  14. ExpiresByType video/mp4 "access plus 1 month"
  15. ExpiresByType video/webm "access plus 1 month"
  16.  
  17. # HTC files (css3pie)
  18. ExpiresByType text/x-component "access plus 1 month"
  19.  
  20. # Webfonts
  21. ExpiresByType font/truetype "access plus 1 month"
  22. ExpiresByType font/opentype "access plus 1 month"
  23. ExpiresByType font/woff "access plus 1 month"
  24. ExpiresByType application/x-font-woff "access plus 1 month"
  25. ExpiresByType image/svg+xml "access plus 1 month"
  26. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  27.  
  28. # CSS and JavaScript
  29. ExpiresByType text/css "access plus 1 year"
  30. ExpiresByType application/javascript "access plus 1 year"
  31. ExpiresByType text/javascript "access plus 1 year"
  32.  
  33. <IfModule mod_headers.c>
  34. Header append Cache-Control "public"
  35. Header append Vary User-Agent
  36. <FilesMatch ".(js|css|xml|gz|woff)$">
  37. Header append Vary: Accept-Encoding
  38. </FilesMatch>
  39. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement