More Premium Hugo Themes Premium Eleventy Themes

Eleventy Fetch

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

Eleventy Fetch

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

Author Avatar Theme by 11ty
Github Stars Github Stars: 159
Last Commit Last Commit: May 8, 2025 -
First Commit Created: Dec 18, 2023 -
default image

Overview

eleventy-fetch is a plugin for the Eleventy static site generator that allows users to fetch network resources and cache them at configurable intervals. This helps prevent overwhelming API or other resources with frequent requests, and also enables users to work offline if a successful request has been completed. It supports caching various types of assets such as JSON, HTML, images, videos, etc.

Features

  • Fetches network resources and caches them at configurable intervals
  • Helps prevent excessive requests to APIs or other resources
  • Enables offline work by utilizing successful requests

Installation

To install eleventy-fetch, you need to have Node version 14 or higher. Follow these steps:

  1. Open your command line interface.
  2. Run the following command to install eleventy-fetch:
npm install eleventy-fetch
  1. Once the installation is complete, you can import eleventy-fetch in your Eleventy project.

Summary

eleventy-fetch is a useful plugin for the Eleventy static site generator that allows users to fetch network resources and cache them, preventing excessive requests and enabling offline work. With easy installation and configuration options, this plugin provides a convenient solution for managing and caching assets in Eleventy projects.