JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1549
  • Score
    100M100P100Q21240F
  • License MIT

Cache remote assets, locally (automatically).

Package Exports

  • @11ty/eleventy-cache-assets

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@11ty/eleventy-cache-assets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eleventy Logo

eleventy-cache-assets

Requires 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.

The full eleventy-cache-assets documentation is on 11ty.dev.

npm Version GitHub issues

Installation

npm install @11ty/eleventy-cache-assets

The full eleventy-cache-assets documentation is on 11ty.dev.

Tests

npm run test