mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +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
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export function setCacheControl(
|
||||||
if (hasJwtCookie(req)) {
|
if (hasJwtCookie(req)) {
|
||||||
caching = "private";
|
caching = "private";
|
||||||
} else {
|
} else {
|
||||||
caching = "public, max-age=5";
|
caching = "public, max-age=60";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue