From 5a5e1b07868273448a38c43ed2cb2addba787fc3 Mon Sep 17 00:00:00 2001 From: Diego Ripley Date: Sun, 3 May 2026 09:59:21 -0400 Subject: [PATCH] Increase cache time to 1 day --- worker/wrangler.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/wrangler.toml b/worker/wrangler.toml index 64a48a3..2fb4473 100644 --- a/worker/wrangler.toml +++ b/worker/wrangler.toml @@ -16,7 +16,7 @@ ALLOWED_ORIGINS = "https://www.dataforcanada.org" # The `cache-control` header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control. # Optional, the `cache-control` header is omitted if unset, which would NOT disable caching: https://developers.cloudflare.com/workers/runtime-apis/cache/#headers # For example, you can disable all cache by setting this to `no-store`. -CACHE_CONTROL = "max-age=600, public" +CACHE_CONTROL = "max-age=86400, public" # The string to prepend to each file path. Optional, nothing is prepended to the path if unset. PATH_PREFIX = "" @@ -45,7 +45,7 @@ ITEMS_PER_PAGE = 1000 HIDE_HIDDEN_FILES = false # Set a cache header here, e.g. "max-age=86400", if you want to cache directory listings. -DIRECTORY_CACHE_CONTROL = "max-age=3600, public" +DIRECTORY_CACHE_CONTROL = "max-age=86400, public" # Set debugging log enabled. LOGGING = false