Here is a problem. I am writing front-end application which heavily depends on JS.
To test it I have to refresh a webpage over and over again.
Because chrome caches every resources I have to clear cache every time.
Is there a way to tell browser not to cache JS files from specific domain at all?
You can use the
Cache-Control: no-cacheHTTP header for the said resources (you have to specify this in your HTTP server config, though, but it is far easier to do once.)You can also use the Chrome Developer Tools’ “Disable cache” feature (found in the
Generalsection of the Settings pane, brought up by clicking the Gear button in the bottom right corner) for testing purposes.