radum / import-maps-caching-demos

Demos showing how to use Import Maps to prevent cascading cache invalidations

Home Page:https://import-maps-caching-demo.glitch.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

🚀  View demos on Glitch  👉

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.

About

Demos showing how to use Import Maps to prevent cascading cache invalidations

https://import-maps-caching-demo.glitch.me/


Languages

Language:JavaScript 100.0%