Skip to content

Commit 4631124

Browse files
authored
Merge pull request #604 from JohnGuilding/feat/update-state-of-private-voting-2026
fix: do not cache pdfs
2 parents fcb3394 + 63011a1 commit 4631124

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

next.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@ const nextConfig = {
103103
},
104104
],
105105
},
106+
{
107+
source: "/articles/:path*\\.pdf",
108+
headers: [
109+
{
110+
key: "Cache-Control",
111+
value: "public, max-age=0, must-revalidate",
112+
},
113+
],
114+
},
106115
]
107116
},
108117
// Configure compiler for modern browsers

0 commit comments

Comments
 (0)