Skip to content

Commit

Permalink
Set additional caching options in CF worker
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Mar 7, 2024
1 parent 05d1905 commit 9bf1454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/cf-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 9bf1454

Please sign in to comment.