In the Node-webkit Tutorial (14) Disabling the cache, we briefly talk about several ways to disable caching at this moment.
During the actual development process, I encountered a strange problem caused by the cache. The application scenario is as follows:
In an editor, you keep adding SVG or other format picture files to the canvas, and the problem is mostly with SVG files.
In the process of inserting SVG pictures, there are often phenomena that cannot be loaded, and the detection files and URLs are correct. And after the SVG file reaches a certain number, it is no longer possible to insert a new file. After repeated troubleshooting, determine that the problem is caused by the cache, but can only go to clear the cache path, it is the worst.
PS: Readers interested in this article, can add QQ Group:hacking:303242737; Hacking-2 group:147098303;Hacking-3 Group:31371755;hacking-4 group : 201891680; HACKING-5 Group:316885176
Node-webkit Tutorials (15) When the picture fails to load