You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If it is `undefined`, no caches will be used. If it's `"default"`, the default cache will be used; otherwise a new cache is opened using the provided name. See [`awaitcaches.open(name)`](https://developers.cloudflare.com/workers/runtime-apis/cache#accessing-cache).
26
+
- `cacheTTL`: number = 300000 (in ms)
27
+
> The value is used to generate the max age of `Cache-Control` and compute the `Expires` time.
28
+
- `cors`: boolean = false
29
+
> Allow CORS or not. If set, CORS headers will be generated and OPTIONS method will be handled.
> Type of LeetCode progress to display. If it's "session", the statistics of the current active session is fetched.
36
+
>
37
+
> This option is set for the default progress type; however, at each request, ones can provided `progress-type` parameter in the query string to change the value.
38
+
- `userlist`: Set<string> = undefined
39
+
> Access control for your Worker. If provided, only usernames appear in the set is allowed to generate the progress; otherwise, 403 forbidden is responsed.
40
+
>
41
+
> Note that leave it undefined means access control disabled, every is allowed to access the Worker.
0 commit comments