How to disable caching of remote scripts and stylesheets when running node-webkit applications?

I use node -webkit to create a desktop application from an intranet site with a lot of external scripts and style sheets. The problem that I noticed during debugging is that it seems to periodically cache external scripts and stylesheets between different launches - sometimes it loads a recently modified script, and in other cases it won't be without turning on the address bar and input script path manually and then reboot. Is there a way to make sure that every time it boots, it gets a new copy of the dependencies?

The .json package I use is below:

{ "name": "name", "description": "description", "version": "0.1", "main": "https://path-to-intranet-site/", "node-remote": "https://path-to-intranet-site", "window": { "show": true, "toolbar": true, "frame": true, "position": "center", "width": 800, "height": 600, "min_width": 220, "min_height": 220 } } 
+4
source share
2 answers

try editing the package.json file as follows:

 { "name": "name", "description": "description", "version": "0.1", "main": "https://path-to-intranet-site/", "node-remote": "https://path-to-intranet-site", "webkit": { "page-cache":false }, "window": { "show": true, "toolbar": true, "frame": true, "position": "center", "width": 800, "height": 600, "min_width": 220, "min_height": 220 } } 
+3
source

In the documentation, the manifest format of the default cache page is false in node-webkit .

Searching the page for the page cache is a little lower.

+1
source

All Articles