0

I am developing the web app which uses some external scripts and stylesheets and using Google Chrome for debugging the app.

Certain web pages in the app contains too many external files(Such as script.js and style.css), And while debugging I only need to load the files I have changed from server instead of local browser cache and rest of the files from the cache.

I know about the hot reloading (Ctrl + F5) in chrome but it reloads ALL the scripts from the server/cdn which takes few extra seconds to load the page and makes debugging annoying.

So how can I force load/disable browser cache for only specific file in Chrome?

Viral Limbani
  • 110
  • 2
  • 6
  • Does this answer your question? [chrome cache removal for single files](https://stackoverflow.com/questions/11881027/chrome-cache-removal-for-single-files) – Eric Jul 14 '22 at 05:58

1 Answers1

0

When I want only specific script to be reloaded on page refresh I add to script url timestamp like this: $v = time();

Every script that has this ?v=... will be reloaded on refresh, others will be read from cache.

Vesna
  • 16