Darkmops
Darkmops

Reputation: 251

Force Chrome to always fetch javascript files

If I have an UI view in view.js and open that one in chrome the script gets downloaded and cached (view.js doesn't get downloaded on second visit) DESPITE having cache disabled (in dev tools, cache killer, whatever I'm using). If I work with the editor of dev tools, change something and save it (editor background turns red) I can open view.js again and the changes were made because Chrome uses the edited view.js.

How can I force Chrome to always download the js files so I can change my files in Eclipse, save them and the changes appear on re-opening view.js. I don't want to reload the whole page, just want to re-open the view.

I hope it is specific enough.

Upvotes: 0

Views: 1111

Answers (2)

Alex
Alex

Reputation: 636

You can tell browsers that you want them to prefer the current (online) version of the files. You can also tell them that you want all the files not included in the manifest to be downloaded from the server.

SETTINGS:
prefer-online
NETWORK:
*

Upvotes: 0

user4227063
user4227063

Reputation:

Add to filename some randome has ( for example timestamp ) - on every load of page url become unique - thus cache would be disabled

Upvotes: 2

Related Questions