WebPagetest Forums
browser caching of static assets passes in gtmetrix but not in webpagetest - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: browser caching of static assets passes in gtmetrix but not in webpagetest (/showthread.php?tid=14078)



browser caching of static assets passes in gtmetrix but not in webpagetest - dimitristi - 11-23-2015 03:44 AM

I see this result in webpagetest.org (truncated for brevity)

FAILED - (No max-age or expires) - http://thewinegod.com/wp-gdb-content/themes/startuply/js/lib/headhesive.min.js
FAILED - (No max-age or expires) - http://thewinegod.com/wp-gdb-content/themes/startuply/js/custom-isotope-portfolio.js
FAILED - (No max-age or expires) - http://thewinegod.com/wp-gdb-content/plugins/js_composer/assets/lib/prettyphoto/js/jquery.prettyPhoto.js
FAILED - (No max-age or expires) - http://thewinegod.com/wp-gdb-content/themes/startuply/js/custom.js
FAILED - (No max-age or expires) - http://thewinegod.com/wp-gdb-content/plugins/js_composer/assets/js/js_composer_front.js


I know for a fact that browser caching has been enabled ok for the site as gtmetrix and PageSpeed Insights essentially show no problems for these files.

Is this a webpagetest.org bug or something I'm missing


RE: browser caching of static assets passes in gtmetrix but not in webpagetest - SRD - 01-05-2016 11:39 AM

I have the same probem. Webpagetest reports the following:

Quote:FAILED - (No max-age or expires) - http://websitetechnology.com.au/wp-content/uploads/2014/07/master-window-cleaners-logo.png
FAILED - (No max-age or expires) - http://websitetechnology.com.au/wp-content/uploads/2014/07/phcs-logo.png
FAILED - (No max-age or expires) - http://websitetechnology.com.au/wp-content/uploads/2014/07/seatpack-logo.png
FAILED - (No max-age or expires) - http://websitetechnology.com.au/wp-content/uploads/2014/07/temper-temper-logo.png
FAILED - (No max-age or expires) - http://websitetechnology.com.au/wp-content/uploads/2014/07/turing-point-logo.png
FAILED - (No max-age or expires) - http://websitetechnology.com.au/wp-content/uploads/2014/07/taste-of-life-tours-logo.png

Chrome developer tools shows the following in the response headers for https://websitetechnology.com.au/wp-content/uploads/2014/07/seatpack-logo.png

Code:
accept-ranges:bytes
cache-control:public, max-age=31536000,public
content-length:3491
content-type:image/png
date:Tue, 05 Jan 2016 01:27:55 GMT
etag:"da3-56528937-0"
expires:Wed, 04 Jan 2017 01:27:55 GMT
last-modified:Mon, 23 Nov 2015 03:34:15 GMT
pragma:public
server:LiteSpeed
status:200
vary:User-Agent



RE: browser caching of static assets passes in gtmetrix but not in webpagetest - pmeenan - 01-06-2016 03:11 AM

Do you have links to the actual test results? The headers should be available there as well.