From c18b79e570ce3db476549375f0dfdcd6696934d8 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 1 Oct 2024 16:30:51 +0200 Subject: [PATCH] sam struggles with caching 2024 colorized --- Foxnouns.Frontend/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foxnouns.Frontend/server.js b/Foxnouns.Frontend/server.js index f9bc18c..88ce3db 100644 --- a/Foxnouns.Frontend/server.js +++ b/Foxnouns.Frontend/server.js @@ -36,7 +36,7 @@ if (viteDevServer) { // Only cache locales for a minute, as they can change without the filename changing // TODO: figure out how to change the filenames on update? -app.use(express.static("build/client/locales", { maxAge: "1m" })); +app.use("/locales", express.static("build/client/locales", { maxAge: "1m" })); // Everything else (like favicon.ico) is cached for an hour. You may want to be // more aggressive with this caching.