From 65ec1b7afa2fce7c91049640fed63bfeeeccd86a Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:00:19 -0700 Subject: [PATCH] Update packages/adapter-cloudflare-workers/files/entry.js --- packages/adapter-cloudflare-workers/files/entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/adapter-cloudflare-workers/files/entry.js b/packages/adapter-cloudflare-workers/files/entry.js index a3946b6515d8..7501777152a4 100644 --- a/packages/adapter-cloudflare-workers/files/entry.js +++ b/packages/adapter-cloudflare-workers/files/entry.js @@ -25,7 +25,7 @@ export default { const res = await get_asset_from_kv(req, env, context); if (is_error(res.status)) return res; - const cache_control = url.pathname.startsWith(appPath + 'immutable/') + const cache_control = url.pathname.startsWith(app_path + 'immutable/') ? 'public, immutable, max-age=31536000' : 'no-cache';