cypress-http-cache (v1.1.2) is an in-memory HTTP caching proxy for Cypress end-to-end test suites. It works by intercepting HTTP requests between Cypress and your web application, caching responses to dramatically speed up subsequent test runs, especially when the same assets are loaded across multiple test specs. This plugin is specifically designed to solve the problem of Cypress clearing the browser cache between test files. It is compatible with Cypress 10+ and is released under MIT. Key differentiators: minimal configuration (single function install), configurable cache size and stats reporting, optional diagnostic headers, support for detached mode (background process or remote proxy).
npm install cypress-http-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Cypress to use an in-memory HTTP cache during E2E tests, with 50 MB cache and stats printed after the run.
Upgrade Cypress to v10+.
Ensure you return the result of installHttpCache (or config returned from it) from setupNodeEvents.
Either use detached mode only in CI with proper cleanup, or avoid detached mode for local runs.
Use 'after:run' or 'never' instead.
Use `const { installHttpCache } = require('cypress-http-cache');`Upgrade Cypress to v10 or later.
Ensure your setupNodeEvents function ends with `return installHttpCache(on, config);`
No dependency data recorded yet.