Node.js module that wraps native fetch with a file-based HTTP cache for crawling purposes. Version 5.1.1 requires Node >= 18. It caches GET responses in a local folder (default `.cache`) and supports configurable cache expiration strategies (e.g., `once`, `never`, integer seconds). Unlike generic HTTP caches, it is designed for long-running crawls where cached files persist across application runs and conditional requests are sent. It is intentionally narrow in scope — not a general-purpose caching proxy but a specialized tool for crawling with opinionated defaults.
npm install fetch-filecache-for-crawlingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates default import, caching with custom folder, and parallel fetching with logging.
Upgrade Node to >=18 or pin to v4.x
Manually delete cache folder if you need repeated resets
Consider this limitation or wait for #3 fix
Use 'default' or integer seconds for time-based refresh
Set parameters before any fetch calls
Use `import fetch from 'fetch-filecache-for-crawling'`
Use only GET requests or wait for HTTP method support
Run npm install fetch-filecache-for-crawling and ensure Node >= 18