Skip to content

Commit

Permalink
disable cache for html
Browse files Browse the repository at this point in the history
  • Loading branch information
codehz committed Jan 16, 2024
1 parent 254076c commit d034f7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class StaticRouters {
return new Response(stringified, {
headers: {
"Content-Type": "application/vnd.server-side-props",
"Cache-Control": "no-store",
},
});
}
Expand Down Expand Up @@ -108,7 +109,10 @@ export class StaticRouters {
}
);
return new Response(stream, {
headers: { "Content-Type": "text/html; charset=utf-8" },
headers: {
"Content-Type": "text/html; charset=utf-8",
"Cache-Control": "no-store",
},
});
}
}
Expand Down

0 comments on commit d034f7a

Please sign in to comment.