Htaccess code to enable Leverage browser caching

May 26, 2015

###############################
#ENABLE BROWSER CACHING START
###############################



  ExpiresActive On

  ExpiresByType text/html "access plus 1 month"

  ExpiresByType image/gif "access plus 1 month"

  ExpiresByType image/jpeg "access plus 1 month"

  ExpiresByType image/png "access plus 1 month"

  ExpiresByType text/css "access plus 1 month"

  ExpiresByType text/javascript "access plus 1 month"

  ExpiresByType application/x-javascript "access plus 1 month"

  ExpiresByType image/x-icon "access plus 1 month"

  ExpiresDefault "access plus 1 month"



###############################
#ENABLE BROWSER CACHING END
###############################

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *