Skip to content

Commit

Permalink
Merge pull request #1660 from navikt/TAG-2160_nocache
Browse files Browse the repository at this point in the history
disable etag og sett maxAge 1h
  • Loading branch information
kenglxn authored Sep 1, 2023
2 parents 6067d9b + 149226e commit c8171f4
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 c8171f4

Please sign in to comment.