So, I was doing repeat view using WPT (Chrome), and there I was finding 304 responses.
While locally, either exiting browser or doing on the same browser and opening a different window, I was not getting 304 responses. So I was wondering, if WPT was not opening new browser window for repeat view, and just doing refresh?
Nope, WPT closes the browser before the repeat view test and does a basic navigation. The 304’s on a POST is a known issue with Chrome which is why I’m surprised you’re not seeing it locally.
oh actually, you are right. my bad – i wasn’t clearing cookies before opening a new browser window locally. so that was the issue… thanks for your help.
a - We don’t delete anything on repeat view. Just close the browser and open it again. If the cookies are session coolies then they will go away because the browser gets closed.
b - Yes, repeat view for desktop has always closed the browser causing the in-memory cache to go with it and causing the browser to use the disk cache in the next session. It was a bug that the mobile agents were not closing the browser.
I see… Yeah these are session cookies, but apparently on local desktop, these session cookies don’t seem to be deleted even after closing browser!
I have another request - I was wondering if we can also get response times for each of the resources, even if they are coming from browser cache in waterfall.
Nope, not with WebPagetest. Since the tests are done back-to-back, even though we close the browser to clear the cache the resources are usually in the OS-level disk cache and get served from RAM anyway.
In the wild it will be significantly more variable because it can be slow to get things off of mechanical drives.
You CAN however measure it in the wild using Resource Timing from modern browsers if it is something you are interested in knowing.