We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f765772 commit 642392fCopy full SHA for 642392f
packages/cli/templates/defaults/app/route-templates/html.tsx
@@ -53,8 +53,8 @@ const cachedFetch: typeof fetch = async (input, init) => {
53
// https://developers.cloudflare.com/workers/reference/how-the-cache-works/#cache-api
54
const requestCacheControl = request.headers.get("Cache-Control");
55
response = response.clone();
56
- if (!response.headers.has("Cache-Control") && requestCacheControl) {
57
- response.headers.append("Cache-Control", requestCacheControl);
+ if (requestCacheControl) {
+ response.headers.set("Cache-Control", requestCacheControl);
58
}
59
cache.put(request, response);
60
0 commit comments