Regarding static file cache

I recently noticed one thing which is not clear to me. After browser cache static files, some files are serving from memory cache and some from disk cache. i want to know, is this controlled by chrome or from the origin server side? is there any way to instruct browser to keep all files in memory when possible from origin server?

please checkout the screenshot and take a look at the red marked files.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

That’s controlled by the browser. The server can only recommend storing a file in cache, but it’s always up to the browser to choose what to do. If you closed your browser, open it up again, show the developer tool and go to the site, then all files would be loaded from disk, since there’s nothing in the memory.