mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 09:34:16 +00:00
Increase cache-control max-age to 60s (#2124)
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>
This commit is contained in:
parent
a5366ddf7a
commit
ab545e0e19
|
@ -55,7 +55,7 @@ export function setCacheControl(
|
|||
if (hasJwtCookie(req)) {
|
||||
caching = "private";
|
||||
} else {
|
||||
caching = "public, max-age=5";
|
||||
caching = "public, max-age=60";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue