Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Adds cacheKey property to CfRequestInit
Browse files Browse the repository at this point in the history
  • Loading branch information
ispivey committed May 15, 2020
1 parent bd2b6ee commit ee31568
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down

0 comments on commit ee31568

Please sign in to comment.