News for hackers. Stuff that matters.
Re:Cloudflare Workers by larzang on Sunday June 02, 2019 @08:30AM (#20075058)
We tried using a worker for a bit, and while it's mostly very convenient, the request/response cache API does NOT support Vary headers, which was a major dealbreaker for us.
Re:Cloudflare Workers by rita3ko on Sunday June 02, 2019 @09:16AM (#20075243)
We can probably help. Vary is usually intended to shard the cache based on parts of the request. You can do the same with the cache API - modify the cache key (quite similar to the example for caching the POST request (https://workers.cloudflare.com/docs/reference/workers-concep...), as you modify cache key to match the POST body).