Skip to content

Commit 783d5b4

Browse files
committed
Add cache update in manager
1 parent d40b127 commit 783d5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function redirectionio_fetch(request, event) {
1111
add_rule_ids_header: REDIRECTIONIO_ADD_HEADER_RULE_IDS === 'true',
1212
version: REDIRECTIONIO_VERSION || 'redirection-io-cloudflare/dev',
1313
instance_name: REDIRECTIONIO_INSTANCE_NAME || 'undefined',
14-
cache_time: REDIRECTIONIO_CACHE_TIME || 0,
14+
cache_time: REDIRECTIONIO_CACHE_TIME ? parseInt(REDIRECTIONIO_CACHE_TIME, 10) : 0,
1515
}
1616

1717
if (options.token === null) {

0 commit comments

Comments
 (0)