Skip to content

Commit 642392f

Browse files
committed
Try to override
1 parent f765772 commit 642392f

File tree

1 file changed

+2
-2
lines changed
  • packages/cli/templates/defaults/app/route-templates

1 file changed

+2
-2
lines changed

packages/cli/templates/defaults/app/route-templates/html.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ const cachedFetch: typeof fetch = async (input, init) => {
5353
// https://developers.cloudflare.com/workers/reference/how-the-cache-works/#cache-api
5454
const requestCacheControl = request.headers.get("Cache-Control");
5555
response = response.clone();
56-
if (!response.headers.has("Cache-Control") && requestCacheControl) {
57-
response.headers.append("Cache-Control", requestCacheControl);
56+
if (requestCacheControl) {
57+
response.headers.set("Cache-Control", requestCacheControl);
5858
}
5959
cache.put(request, response);
6060
}

0 commit comments

Comments
 (0)