Skip to content

Commit 5ed425c

Browse files
committed
reduce load on origin doc server
1 parent 0cecfb2 commit 5ed425c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ app.use(
8484
)
8585
app.use(helmet(helmetOptions))
8686

87-
const mustRevalidate = 'public, max-age=0, must-revalidate'
87+
const mustRevalidate =
88+
'public, max-age=0, must-revalidate, s-maxage=60, stale-while-revalidate=240'
8889
const cacheForever = 'public, max-age=31536000, immutable'
8990
const serveMiddleware = async (req, res) => {
9091
await serveHandler(req, res, {

0 commit comments

Comments
 (0)