We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b6438c commit 0b3edaaCopy full SHA for 0b3edaa
src/server/index.tsx
@@ -59,7 +59,7 @@ if (process.env["NODE_ENV"] === "development") {
59
server.use(
60
getStaticDir(),
61
express.static(serverPath, {
62
- maxAge: 24 * 60 * 60 * 1000, // 1 day
+ maxAge: 365 * 24 * 60 * 60 * 1000, // 1 year
63
immutable: true,
64
}),
65
);
src/server/middleware.ts
@@ -39,10 +39,6 @@ export function setCacheControl(
39
res: Response,
40
next: NextFunction,
41
) {
42
- if (process.env.NODE_ENV !== "production") {
43
- return next();
44
- }
45
-
46
let caching: string;
47
48
// Only allow caching for success responses
0 commit comments