app-framework icon indicating copy to clipboard operation
app-framework copied to clipboard

v3 - add 'clean cache' script

Open tiptronic opened this issue 7 years ago • 2 comments

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

tiptronic avatar Jan 11 '19 12:01 tiptronic

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

scriptPilot avatar Jan 11 '19 22:01 scriptPilot

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.

tiptronic avatar Jan 12 '19 01:01 tiptronic