bbc / http-transport-cache

A HTTP spec compliant caching layer for http-transport.
Other
3 stars 5 forks source link

Option to respect stale-while-revalidate headers #8

Closed niklasR closed 6 years ago

niklasR commented 6 years ago

Add optional feature to keep items in cache for an extra period as specified by the 'stale-while-revalidate' header in the response to serve stale and 'collapse' requests to the API whilst revalidation is in progress.

niklasR commented 6 years ago

@nspragg Changes to be reviews only last commit: https://github.com/bbc/http-transport-cache/pull/8/commits/6552612783d59d8e4965b009672227825332a8b2

nspragg commented 6 years ago

👍