From cd52755c000e95a7f6a7efe392ad8ff5ea2826b6 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 15 Nov 2024 14:21:35 -0600 Subject: [PATCH] no cache headers on .well-known endpoints --- next.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/next.config.js b/next.config.js index 961ca39..9310a5b 100644 --- a/next.config.js +++ b/next.config.js @@ -62,6 +62,17 @@ module.exports = removeImports({ value: "max-age=31536000; includeSubDomains; preload" }, ], + source: "/api/.well-known/:path*", + headers: [ + { + key: "Access-Control-Allow-Origin", + value: "*" + }, + { + key: 'Cache-Control', + value: 'no-cache, max-age=0, must-revalidate' + } + ], }, ]; },