scriptPilot / app-framework

Applications for any device with HTML, CSS and JavaScript - free and open source!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v3 - add 'clean cache' script

tiptronic opened this issue · comments

add a dedicated 'npx app clean' script to get rid of the current cache

@tiptronic - What is the use case behind? As soon as you edit any files, the cache will be updated.

The current build behavior most often leaves traces of the former cache.

You can easily reproduce, if you just copy some (even unrelated) src files - or even replace your current 'src' directory.

E.g. Safari and Chrome keep their own caches, so they keep traces of the last cache valid.

So it happens, after swapping files, etc... the cache fails to update all traces....

If there's a 'clean cache' script, which forces those browsers to invalidate caches, the problem is sovled.