3 ms·
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 (
by rita3ko 7y ago
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-concepts/using-cache/ https://workers.cloudflare.com/docs/reference/workers-concep...), as you modify cache key to match the POST body).