bbc / http-transport-cache

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

Ignore private pragma #24

Open nspragg opened 5 years ago

nspragg commented 5 years ago

Determining whether a response should be cached, involves checking no-store and private. See

Is some cases, not caching a response because private is present in the cache control header may be undesirable. private is used to indicate a response is for a single user and not be to added to a shared cache. e.g mediaselector does this.

Therefore, allow private to be ignored with a configuration option.

niklasR commented 5 years ago

Sounds good to me 👍

andymsuk commented 5 years ago

And me 👍