Advertisement
guilhermetb

Untitled

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