Why does the cached file have a high wait value (TTFB) or Content Loaded ms?

I look at a waterfall in Chromes Developer tools from several CSS and Javascript files.

When the page is refreshed, some files are downloaded from the browser cache, as expected. It takes 1 ms to download most of the time. However, some files, and it seems that the same intruders each update, take quite a lot of time. The ratio is between 400 and 800 ms.

The timeline of the waterfall on the Chromes network tab shows that in some cases this time is spent in TTFB (time to the first byte). This makes no sense to me, if he gets it from the browser cache, he should get it from the hard drive, and not from the server, why is there TTFB?

For other files, or sometimes with a different update, I see that the time is to blame for the contents of the download time. Again, based on the cache, this should be pretty instantaneous, but I see that sometimes it takes half a second.

Can anyone shed light on what is happening here? This is a web application I'm working on, so I don’t have a link that I can share. I'm afraid

+5
source share

All Articles