Chrome - "disable cache"

I am using Chrome Dev Tools to debug the web application that I am creating. I'm interested in this "Disable cache" button in Chrome Dev Tools:

enter image description here

Can someone please tell me what this does?

I noticed some problems using Offline.js and found that if I check "Disable cache" here in Dev Tools, it works fine.

But what exactly does this do? I use Cache Manifest in my application, so it works offline, but if the “Disable Cache” button in Chrome Dev Tools actually just disguises a big problem that I don’t need.

Essentially, I think what happens is:

  • The image that I upload (see Offline.js - check online? ) That performs the function Offline.js to determine if the user is online or offline, this image is cached
  • Therefore, after the first boot, it always appears on the network.
  • If I disable the cache in Chrome Dev Tools, it works correctly, because every time it loads a new copy of the image.

Any words of wisdom are welcome.

+4
source share
1 answer

Disable cache cache disable cache , this means that every time you connect the server, you again load the WHOLE website, even already downloaded images.

( , )

+5

Source: https://habr.com/ru/post/1585063/


All Articles