Tay
Explore posts from serversCDCloudflare Developers
•Created by Tay on 8/31/2023 in #pages-help
Accessing Cache API Typescript
In the cache API documentation (https://developers.cloudflare.com/workers/runtime-apis/cache/#accessing-cache), it says to access the cache via a global variable. However the examples show a third parameter in the fetch method. This parameter doesn't exist in my Typescript definition that wrangler generated.
Which is the correct way to access the Cache API? Also if I use the Cache API should I disable edge caching via page rules for the route?
9 replies