Skip to content

Commit

Permalink
Increase cache-control max-age to 60s (#2124)
Browse files Browse the repository at this point in the history
Cache headers have been active in production for a while now, and I didnt see any issues reported. So it should be save to increase the max-age to reduce server load further.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
  • Loading branch information
Nutomic and dessalines authored Sep 12, 2023
1 parent a5366dd commit ab545e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function setCacheControl(
if (hasJwtCookie(req)) {
caching = "private";
} else {
caching = "public, max-age=5";
caching = "public, max-age=60";
}
}

Expand Down

0 comments on commit ab545e0

Please sign in to comment.