Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1.  
  2. <IfModule mod_headers.c>
  3. Header unset ETag
  4. </IfModule>
  5. FileETag None
  6. <IfModule mod_expires.c>
  7. ExpiresActive on
  8. ExpiresDefault "access plus 1 month"
  9. ExpiresByType text/cache-manifest "access plus 0 seconds"
  10. # Html
  11. ExpiresByType text/html "access plus 0 seconds"
  12. # Data
  13. ExpiresByType text/xml "access plus 0 seconds"
  14. ExpiresByType application/xml "access plus 0 seconds"
  15. ExpiresByType application/json "access plus 0 seconds"
  16. # Feed
  17. ExpiresByType application/rss+xml "access plus 1 hour"
  18. ExpiresByType application/atom+xml "access plus 1 hour"
  19. # Favicon
  20. ExpiresByType image/x-icon "access plus 1 week"
  21. # Media: images, video, audio
  22. ExpiresByType image/gif "access plus 1 month"
  23. ExpiresByType image/png "access plus 1 month"
  24. ExpiresByType image/jpg "access plus 1 month"
  25. ExpiresByType image/jpeg "access plus 1 month"
  26. ExpiresByType video/ogg "access plus 1 month"
  27. ExpiresByType audio/ogg "access plus 1 month"
  28. ExpiresByType video/mp4 "access plus 1 month"
  29. ExpiresByType video/webm "access plus 1 month"
  30. # HTC files
  31. ExpiresByType text/x-component "access plus 1 month"
  32. # Webfonts
  33. ExpiresByType application/x-font-ttf "access plus 1 month"
  34. ExpiresByType font/opentype "access plus 1 month"
  35. ExpiresByType application/x-font-woff "access plus 1 month"
  36. ExpiresByType image/svg+xml "access plus 1 month"
  37. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  38. # CSS / JS
  39. ExpiresByType text/css "access plus 1 year"
  40. ExpiresByType application/javascript "access plus 1 year"
  41. ExpiresByType application/x-javascript "access plus 1 year"
  42. </IfModule>
  43. #Força o IE a sempre carregar utilizando a última versão disponível
  44. <IfModule mod_headers.c>
  45. Header set X-UA-Compatible "IE=Edge,chrome=1"
  46. <FilesMatch "\.(js|css|gif|png|jpeg|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
  47. Header unset X-UA-Compatible
  48. </FilesMatch>
  49. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement