sam struggles with caching 2024 colorized
This commit is contained in:
parent
9b55747657
commit
c18b79e570
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue