lox / httpcache

An RFC7234 compliant golang http.Handler for caching HTTP responses
MIT License
264 stars 28 forks source link

Don't treat no-cache as no-store #18

Open PSUdaemon opened 9 years ago

PSUdaemon commented 9 years ago

https://httpwg.github.io/specs/rfc7234.html#rfc.section.5.2.2.2

no-cache in a response means you can still store on your proxy, you just cannot serve it without revalidation. We should store the content but immediately expired. Then revalidate it upon request.

I can work on a patch for this if you would like.

lox commented 9 years ago

Ah yup, I think I have a branch somewhere that addressed this, but I can't find it. PR's welcome.