@lucid-softworks/http-cache
v0.1.0
Published
Clone-safe in-memory HTTP response caching middleware.
Maintainers
Readme
@lucid-softworks/http-cache
Clone-safe in-memory response caching middleware.
import { httpCache, MemoryHttpCache } from "@lucid-softworks/http-cache";
app.use(httpCache({ cache: new MemoryHttpCache(), ttl: 30_000 }));Only successful GET responses without no-store are cached. Every lookup
returns a response clone and reports x-cache: HIT or MISS.
