Skip to content

Commit

Permalink
disable etag og sett maxAge 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Aug 31, 2023
1 parent 6067d9b commit 149226e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,14 @@ const main = async () => {
});
}

app.use('/min-side-arbeidsgiver/', express.static(BUILD_PATH, { index: false }));
app.use(
'/min-side-arbeidsgiver/',
express.static(BUILD_PATH, {
index: false,
etag: false,
maxAge: '1h',
})
);

app.get('/min-side-arbeidsgiver/internal/isAlive', (req, res) => res.sendStatus(200));
app.get('/min-side-arbeidsgiver/internal/isReady', (req, res) => res.sendStatus(200));
Expand Down

0 comments on commit 149226e

Please sign in to comment.