Skip to content

Commit

Permalink
refactor: send maxAge > 0 (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark86092 authored Sep 9, 2023
1 parent 341d98e commit d4364b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const matchRoutes = (pathname, routes) => {
const server = Express();
server
.disable('x-powered-by')
.use(Express.static(process.env.RAZZLE_PUBLIC_DIR));
.use(Express.static(process.env.RAZZLE_PUBLIC_DIR, { maxAge: '14d' }));

const wrap = fn => (req, res, next) => fn(req, res).catch(err => next(err));
server.get(
Expand Down

0 comments on commit d4364b7

Please sign in to comment.