-
AuthorPosts
-
May 30th, 2015 at 22:21 #32006D’Ana S
Google complains that I need to Leverage browser caching for these files. I don’t know how. I have WP Super cache installed and it is awesome but it doesn’t seem to affect these files. I copied and pasted below. Can any one help. I’d like to pass as many of googles rules as possible.
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
http://life-asiknowit.com/wp-content/themes/nirvana/fonts/elusive.woff (expiration not specified)
http://life-asiknowit.com/wp-content/themes/nirvana/fonts/sourcesanspro-extralight-webfont.woff (expiration not specified)
http://life-asiknowit.com/wp-content/themes/nirvana/fonts/sourcesanspro-light-webfont.woff (expiration not specified)
http://life-asiknowit.com/wp-content/themes/nirvana/fonts/sourcesanspro-regular-webfont.woff (expiration not
August 6th, 2015 at 14:48 #32466pankajjust copy and past below code to your .htaccess file in root
#remove laverage browse catche
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault “access plus 1 month”
# My favicon
ExpiresByType image/x-icon “access plus 1 year”
# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
# CSS
ExpiresByType text/css “access plus 1 month”
# Javascript
ExpiresByType application/javascript “access plus 1 year”
</IfModule> -
AuthorPosts
The topic ‘Leverage browser caching’ is closed to new replies.