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

Adds cacheKey property to CfRequestInit #28

Merged
merged 1 commit into from
May 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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