eleventy-cache-assetsRequires Node 10+
Fetch network resources and cache them so you don’t bombard your API (or other resources). Do this at configurable intervals—not with every build! Once per minute, or once per hour, once per day, or however often you like!
With the added benefit that if one successful request completes, you can now work offline!
This plugin can save any kind of asset—JSON, HTML, images, videos, etc.
eleventy-cache-assets documentation is on 11ty.dev.
- This is a plugin for the Eleventy static site generator.
- Find more Eleventy plugins.
- Please star Eleventy on GitHub, follow @eleventy on Twitter, and support 11ty on Open Collective
npm install @11ty/eleventy-cache-assets
eleventy-cache-assetsdocumentation is on 11ty.dev.
npm run test
- ℹ️ To keep tests fast, thou shalt try to avoid writing files in tests.