Skip to content

Commit

Permalink
feat: added 24 hours cache (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht authored Aug 28, 2022
1 parent f1b2cf7 commit 05e8acd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apps/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ app.use(compression());
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(cookieParser(jwt_secret));
app.use(express.static(path.resolve(path.join(process.cwd(), 'src', 'public')))); // prettier-ignore
app.use(
express.static(path.resolve(path.join(process.cwd(), 'src', 'public')), {
maxage: '24h',
}),
);

expressJSDocSwagger(app)(expressJsdocOptions);

Expand Down

0 comments on commit 05e8acd

Please sign in to comment.