We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea417d0 commit 3e5d8aeCopy full SHA for 3e5d8ae
server/src/index.ts
@@ -16,6 +16,11 @@ import "express-async-errors";
16
17
const app = express();
18
19
+app.use((req, res, next) => {
20
+ res.set("Cache-Control", "public, max-age=300, stale-while-revalidate=600");
21
+ next();
22
+});
23
+
24
// 高度なクエリパーサーを使わないよう設定。これによりクエリパラメータが配列やオブジェクトではなく string になるようにしている。
25
// https://expressjs.com/ja/api.html#app.settings.table の query parser を参照。
26
app.set("query parser", "simple");
0 commit comments