×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: bejoy balan
Added: Sep 11, 2014 7:28 AM
Views: 18
Tags: browser
Browser caching , leverage cache
  1.  
  2. ## EXPIRES CACHING ##
  3. <IfModule mod_expires.c>
  4. ExpiresActive On
  5. ExpiresByType image/jpg "access 1 year"
  6. ExpiresByType image/jpeg "access 1 year"
  7. ExpiresByType image/gif "access 1 year"
  8. ExpiresByType image/png "access 1 year"
  9. ExpiresByType text/css "access 1 month"
  10. ExpiresByType application/pdf "access 1 month"
  11. ExpiresByType application/x-javascript "access 1 month"
  12. ExpiresByType application/x-shockwave-flash "access 1 month"
  13. ExpiresByType image/x-icon "access 1 year"
  14. ExpiresDefault "access 2 days"
  15. </IfModule>
  16. ## EXPIRES CACHING ##