Why does Report state browser caching not set when waterfall clearly shows it is?
|
02-24-2018, 05:12 AM
Post: #1
|
|||
|
|||
Why does Report state browser caching not set when waterfall clearly shows it is?
I run a test which gives an F for browser caching and a long list of items with no expiry header.
But the waterfall clearly shows that on second load those files aren't' being redownloaded, and I know expiry headers are being applied in htaccess. This happens on a number of sites - here's an example https://www.webpagetest.org/result/18022...view_step1 Any idea what's up with this? Paul |
|||
02-24-2018, 11:51 AM
Post: #2
|
|||
|
|||
RE: Why does Report state browser caching not set when waterfall clearly shows it is?
Because you're not caching them properly. Gtmetrix returns the same.
https://gtmetrix.com/reports/www.cochran...a/lbLMpc38 |
|||
02-24-2018, 12:33 PM
Post: #3
|
|||
|
|||
RE: Why does Report state browser caching not set when waterfall clearly shows it is?
(02-24-2018 11:51 AM)avalanch Wrote: Because you're not caching them properly. Gtmetrix returns the same. And yet I'm using the exact htaccess caching code provided by GTMetrix themselves. And the waterfalls from webpagetest clearly shows that the objects ARE cached as they are not redownloading on second page load. Further supported by the fact that the repeat page load is twice as fast as initial page load. |
|||
02-25-2018, 06:44 AM
Post: #4
|
|||
|
|||
RE: Why does Report state browser caching not set when waterfall clearly shows it is?
I didn't say that you weren't caching things, I said that you're not doing it properly.
For reference, here's what I use and it checks out fine. Code: # BEGIN W3TC Browser Cache |
|||
02-26-2018, 06:19 AM
Post: #5
|
|||
|
|||
RE: Why does Report state browser caching not set when waterfall clearly shows it is?
Browsers will use a heuristic to cache resources for a period if not explicitly specified. Your static resources don't have caching headers so the htaccess rules aren't working: https://www.webpagetest.org/result/18022...1_request2
The server is responding as nginx which doesn't use htaccess (that's for Apache). |
|||
02-26-2018, 10:28 AM
(This post was last modified: 02-26-2018 10:29 AM by avalanch.)
Post: #6
|
|||
|
|||
RE: Why does Report state browser caching not set when waterfall clearly shows it is?
Oh ok, he's using nginx. I don't know much about it but this article should help.
https://serversforhackers.com/c/nginx-caching If not, he should follow these results. http://bfy.tw/Gnm2 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)