Version 2.1.3 (stable, released 2021-07-29, maintenance mode). A d2l-fetch middleware that caches HTTP responses based on method, URL, and Authorization header. Ignores server Cache-Control directives; provides opt-in client-side caching with configurable TTL and method filtering. Depends on d2l-fetch; part of Brightspace ecosystem.
npm install d2l-fetch-simple-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up the simple-cache middleware with a 5-minute TTL and makes a cached fetch request.
Use named import: import { fetchSimpleCache } from 'd2l-fetch-simple-cache';Consider using a more standards-compliant caching middleware if cache-control compliance is needed.
Change to import { fetchSimpleCache } from 'd2l-fetch-simple-cache';Run 'npm install d2l-fetch-simple-cache' and ensure node_modules is present.