Skip to content

Commit d034f7a

Browse files
committed
disable cache for html
1 parent 254076c commit d034f7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export class StaticRouters {
7979
return new Response(stringified, {
8080
headers: {
8181
"Content-Type": "application/vnd.server-side-props",
82+
"Cache-Control": "no-store",
8283
},
8384
});
8485
}
@@ -108,7 +109,10 @@ export class StaticRouters {
108109
}
109110
);
110111
return new Response(stream, {
111-
headers: { "Content-Type": "text/html; charset=utf-8" },
112+
headers: {
113+
"Content-Type": "text/html; charset=utf-8",
114+
"Cache-Control": "no-store",
115+
},
112116
});
113117
}
114118
}

0 commit comments

Comments
 (0)