Skip to content

Commit a1dad34

Browse files
authored
fix: try to fix cache problem (#235)
2 parents d5c2027 + d810b51 commit a1dad34

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

next.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ const nextConfig = {
1515
},
1616
],
1717
},
18+
async headers() {
19+
return [
20+
{
21+
source: "/(.*)",
22+
headers: [
23+
{
24+
key: "Cache-Control",
25+
value: "no-cache, no-store, must-revalidate",
26+
},
27+
],
28+
},
29+
];
30+
},
1831
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
1932
if (!isServer) {
2033
config.output.filename = "static/chunks/[name].js";

0 commit comments

Comments
 (0)