From ee315685e46001bf2e4c02e519be1ac50af77452 Mon Sep 17 00:00:00 2001 From: Ian Spivey Date: Fri, 15 May 2020 10:22:37 -0500 Subject: [PATCH] Adds cacheKey property to CfRequestInit --- index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.d.ts b/index.d.ts index 3f8b51c5..8e4bf99f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -13,6 +13,15 @@ interface CfRequestInit { * playground. */ cacheEverything?: boolean + /** + * A request's cache key is what determines if two requests are + * "the same" for caching purposes. If a request has the same cache key + * as some previous request, then we can serve the same cached response for + * both. (e.g. 'some-key') + * + * Only available for Enterprise customers. + */ + cacheKey?: string /** * Force response to be cached for a given number of seconds. (e.g. 300) */