Leverage Browser Caching
-
I’ve run a GT Metrix analysis of my site, but I get an ‘F’ grade for Leveraging browser caching.
My .htacess file says:<IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" 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" ExpiresByType text/css "access 1 month" ExpiresByType application/javascript "access plus 1 year" </IfModule>
But the GT Metrix page says:
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
http://forestskillsltd.co.uk/assets/2012/11/cropped-FS-Climbing-header-Y.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2012/11/wild-camping-e1441832557715.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2013/01/the-spork-in-the-wild-150×100.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2013/02/morakniv-840-companion-carbon-steel-150×74.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2013/02/morakniv-companion-840-hd-main-150×81.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2013/02/morakniv-wood-carving-162-150×31.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2013/11/the-woodstrapper-114×150.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2015/07/bushcraft-courses-e1441833418254.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2015/07/family-bushcraft-e1441832641294.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2015/07/forest-school-e1441834169483.jpg (expiration not specified)
http://forestskillsltd.co.uk/assets/2015/07/tracking-e1441832455959.jpg (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/0c5a4a0d58cfd8062a7470218664445c/1442483620index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/107eaea4d673338cb83fe8e4fd9c0d33/1442483621index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/15badcd51012418226f90787abe35674/1442483620index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/2bfe2e716c5ad15ad11ee62973a25970/1442483621index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/2d622c073b6fd7e3ede1dd41946d626f/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/36cfe3ad58ce58ffe2707050fa7cbec2/1442483621index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/3cbc4fa95094b84f1172e7e520ccb19b/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/4fa9c9ae2dbadd1275ab7fcaec34d473/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/5a23c3cb41b09c238b2cd89030cfee47/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/6ec8f0f2dcb2c28bddaea58f3a0f3967/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/828e83c361f54b8f94bd42118dd426ef/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/9400f5e45b31f9b2e098a73809a10cab/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/943a90cdaf72633c5173624e6f5f5980/1442483621index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/ad8812b58e56a919d8183fcbd1cb3470/1442483621index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/c0057a95da2e3fafb3c29743a1d61721/1442483621index.js (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/e75bbc9a2c1bc358d902433c9731e458/1442483621index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/cache/wpfc-minified/f021ca2e31d2f268c0045c319496426e/1442483620index.css (expiration not specified)
http://forestskillsltd.co.uk/wp-content/plugins/cookie-law-info/images/overlay.png (expiration not specified)
http://forestskillsltd.co.uk/wp-content/plugins/testimonials-widget/includes/libraries/bxslider-4/dist/images/bx_loader.gif (expiration not specified)
http://forestskillsltd.co.uk/wp-content/plugins/testimonials-widget/includes/libraries/bxslider-4/dist/images/controls.png (expiration not specified)
http://forestskillsltd.co.uk/wp-includes/images/smilies/simple-smile.png (expiration not specified)
http://www.google-analytics.com/analytics.js (2 hours)Q: Assuming that the mod_expires.c module isn’t active/working/on, what should I add to the mod_expires.c rules so that there is an expiry time for the other files that it’s highlighted (including exactly what I need to type please (new-ish-be)).
Thanks!
- The topic ‘Leverage Browser Caching’ is closed to new replies.