From 63011a1c6356beb88bd26e197527549c40c28312 Mon Sep 17 00:00:00 2001 From: John Guilding Date: Tue, 16 Dec 2025 21:20:54 -0500 Subject: [PATCH] fix: do not cache pdfs --- next.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 9bab506..76202ac 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -103,6 +103,15 @@ const nextConfig = { }, ], }, + { + source: "/articles/:path*\\.pdf", + headers: [ + { + key: "Cache-Control", + value: "public, max-age=0, must-revalidate", + }, + ], + }, ] }, // Configure compiler for modern browsers