We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d40b127 commit 783d5b4Copy full SHA for 783d5b4
worker/worker.js
@@ -11,7 +11,7 @@ async function redirectionio_fetch(request, event) {
11
add_rule_ids_header: REDIRECTIONIO_ADD_HEADER_RULE_IDS === 'true',
12
version: REDIRECTIONIO_VERSION || 'redirection-io-cloudflare/dev',
13
instance_name: REDIRECTIONIO_INSTANCE_NAME || 'undefined',
14
- cache_time: REDIRECTIONIO_CACHE_TIME || 0,
+ cache_time: REDIRECTIONIO_CACHE_TIME ? parseInt(REDIRECTIONIO_CACHE_TIME, 10) : 0,
15
}
16
17
if (options.token === null) {
0 commit comments