Link to home
Start Free TrialLog in
Avatar of Sumit Juyal
Sumit Juyal

asked on

Chrome Not Caching JS/CSS

I am working on a performance improvement of our website (https://now.tirehub.com) .  and this thing caught my attention when I was looking at Dynatrace “Real User Monitoring” . when I looked at waterfall chart of page load , I saw all the resources are getting loaded irrespective of browser Cache.

 
I was pretty sure something is wrong with our cache headers (feel free to click the link to see headers), but there was nothing wrong there . Then as usual I opened developer tool to see if browser is caching JS /CSS and figured that no matter what page I go to – JS and CSS are not getting cached by Chrome , although images and font files we cached.
 
Then I installed firefox and opened developer tool there. It indeed was caching JS / CSS as expected. Then I thought that it could  be chrome developer tool , but there are thousand of request recorded by  Dynatrace “Real User Monitoring” showing the same behavior.

 I am definitely missing something but don’t know what.

Many Thanks in Advance

Sumit Juyal
Avatar of David Favor
David Favor
Flag of United States of America image

http://www.webpagetest.org/result/180823_XZ_1a2e668fd08f15302831828f45c8728b/1/details/#waterfall_view_step1 shows all your site assets/files have correct cache headers.

Likely good for you to check WPT first. The data WPT produces seems far easier, to me, for most people to understand at a glance.
Hello,
It looks like things are caching for me in Chrome. Notice the "(from memory cache)" and "(from disk cache)" in the "Size" column for most items.
User generated imagePerhaps you have the "Disable cache" option checked in your Chrome dev tools.
User generated image
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.