http-cache-semantics
http-cache-semantics copied to clipboard
RFC 7234 in JavaScript. Parses HTTP headers to correctly compute cacheability of responses, even in complex cases
Hi, love this library! A great addition would be a brief sample implementation of how to use `policy.useStaleWhileRevalidate()` in the readme. I haven't quite got my head around how to...
Adds a `status` field to the `response` returned by `evaluateRequest`, making it a complete `HttpResponse` object. Additionally, a `status()` API is added to the `CachePolicy` class to expose the status...
In one of my project where I get to implement a cache, I store the response body (content) and the policy (via `.toObject()`) together. When assembling a response from cache,...
Would it be possible to tag and release version 4.2.0? I'd really like to use the new `evaluateRequest` API in a project.