Skip to content

Utility to cache any remote asset: Image, Video, Web Font, CSS, JSON, etc

Notifications You must be signed in to change notification settings

v-zhzhou/eleventy-cache-assets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

About

Utility to cache any remote asset: Image, Video, Web Font, CSS, JSON, etc

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%