Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘Leverage browser caching using .htaccess file’ is closed to new replies.
Hi,
To Leverage browser caching for my public site i added below code in my .htaccess file, but its not working, kindly let me know how to fix this.
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##
Replies only viewable for logged in users
The topic ‘Leverage browser caching using .htaccess file’ is closed to new replies.