From 9bf14542e3fc791f066aad1f1c497274db20f0fb Mon Sep 17 00:00:00 2001 From: printfn Date: Thu, 7 Mar 2024 09:58:28 +0000 Subject: [PATCH] Set additional caching options in CF worker --- web/cf-worker.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/cf-worker.js b/web/cf-worker.js index cb312d56..28f35314 100644 --- a/web/cf-worker.js +++ b/web/cf-worker.js @@ -9,6 +9,10 @@ export default { const fetchResult = await fetch( 'https://treasury.un.org/operationalrates/xsql2XML.php', { + cf: { + cacheTtl: 86400, + cacheEverything: true, + }, headers: { 'X-Source': 'Cloudflare-Workers', },