hypothesis / proxy-server

serve third party webpages (currently limited to pdfs) with the hypothesis client embedded and configured
1 stars 0 forks source link

Spike: investigate caching in Cloudflare #6

Closed hmstepanek closed 4 years ago

hmstepanek commented 4 years ago

Problem

When proxying pages, it can take a while to respond with the initial html page. There's not much we can do to combat this issue for the first request but for subsequent requests this could be improved by returning the cached response in Cloudflare rather than sending the request all the way to the via2 server.

It's possible that Cloudflare is already caching and there's nothing more we can do but this issue is simply to make sure that Cloudflare caching is working as expected and returning cached responses when able.