import-maps-caching-demos
import-maps-caching-demos copied to clipboard
Demos showing how to use Import Maps to prevent cascading cache invalidations
Import Maps Caching Demos
Demos showing how to use Import Maps (and similar technologies) to avoid the problems described in the article Cascading Cache Invalidation.
Building and running the app locally
To run the app locally, clone this repo and npm install all dependencies, then run the following command:
npm start
Or to build the app without running it, run:
npm run build
Validating changes
To validate that source changes don't cause cascading cache invalidations, make a change to the source modules and rebuild the demos:
npm run build
After a rebuild, you can reload each demo and see which assets are served from cache and which assets are re-requested.