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

Commit 837b961

Browse files
committed
add cache behavior modifiers to RequestInit interface
documentation for these features can be found at https://developers.cloudflare.com/workers/about/using-cache/
1 parent 5163f0e commit 837b961

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ interface FetchEvent {
55
interface RequestInit {
66
cf?: {
77
cacheEverything?: boolean
8+
cacheTtl?: number
9+
cacheTtlByStatus?: { [key: string]: number }
810
scrapeShield?: boolean
911
apps?: boolean
1012
image?: {

0 commit comments

Comments
 (0)