Stop caching Javascript files when running in browser?

Is there an option in Webstorm to stop the caching of Javascript files from Webstorm's local html server?

 

When I change a Javascript file and click run, sometimes it runs with the old Javascript file because it's cached in the browser.

6 comments
Comment actions Permalink

WebStorm doesn't cache files. It must be a problem with your project setup

0
Comment actions Permalink

I'm talking about Webstorm's html server. It's allowing the browser to cache the Javascript files.

0
Comment actions Permalink

The built-in server doesn't cache files (and doesn't affect browser caching in any way). do you use any build tools/watchers/etc.? Do you have your project stored on local drive? are there any symlinks in your project path? What language do you work with - pure javascript, ES6, Dart, etc.?

0
Comment actions Permalink

Chrome browser has an option on the Dev Console>Network tab>Disable Cache.

Is this something that exists within the Intellij JS debugger?

0
Comment actions Permalink

No; the debugger itself doesn't cache files

0
Comment actions Permalink

I'm looking for this functionality too; launch the program in an instance of Chrome that already has caching disabled. When working with vscode, I never had to check 'disable cache' in Chrome because Chrome didn't cache files. With WebStorm, it does.

0

Please sign in to leave a comment.