Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. // Cache-Control
  2. <filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|svg|js|css|swf)$">
  3. Header set Cache-Control "max-age=84600, public"
  4. </filesMatch>
  5.  
  6. // Expires Header
  7. ## EXPIRES HEADER CACHING ##
  8. <IfModule mod_expires.c>
  9. ExpiresActive On
  10. ExpiresByType image/jpg "access 1 year"
  11. ExpiresByType image/jpeg "access 1 year"
  12. ExpiresByType image/gif "access 1 year"
  13. ExpiresByType image/png "access 1 year"
  14. ExpiresByType image/svg "access 1 year"
  15. ExpiresByType text/css "access 1 month"
  16. ExpiresByType application/pdf "access 1 month"
  17. ExpiresByType application/javascript "access 1 month"
  18. ExpiresByType application/x-javascript "access 1 month"
  19. ExpiresByType application/x-shockwave-flash "access 1 month"
  20. ExpiresByType image/x-icon "access 1 year"
  21. ExpiresDefault "access 2 days"
  22. </IfModule>
  23. ## EXPIRES HEADER CACHING ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement