lox / httpcache

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

Don't wait whole upstream response #25

Closed tgulacsi closed 8 years ago

tgulacsi commented 8 years ago

Use gopkg.in/djherbis/stream.v1 to allow concurrent writing of the upstream response to downstream and conditionally reading it into the cache. Fixes #20.

lox commented 8 years ago

Thanks for the PR! I'll review shortly. I've been working on https://github.com/lox/patchwork to solve this, but @djherbis's stream will do the trick too.

Could I trouble you to split the vendor/ deps out into another PR? I'm going to move https://github.com/Masterminds/glide shortly.

tgulacsi commented 8 years ago

Ok, two new PRs coming!