Skip to content

Commit

Permalink
cache updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic authored Jun 21, 2023
1 parent b7253dd commit a543451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ server {

# Response cache for unauthenticated users
proxy_cache lemmy_cache_{{domain}};
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_valid 1m;
proxy_no_cache $cookie_jwt;
add_header x-cache-status $upstream_cache_status;
Expand All @@ -101,7 +101,7 @@ server {

# Response cache for unauthenticated users
proxy_cache lemmy_cache_{{domain}};
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_valid 1m;
proxy_no_cache $arg_auth $cookie_jwt;
add_header x-cache-status $upstream_cache_status;
Expand Down

0 comments on commit a543451

Please sign in to comment.