Skip to content
Snippets Groups Projects
Commit 61509715 authored by ale's avatar ale
Browse files

Serve stale responses while updating the HTTP cache

Also ensures that we only send one request to upstream when
the cache is invalid.
parent 4a42b3a5
Branches
No related tags found
No related merge requests found
Pipeline #71753 passed
...@@ -32,3 +32,9 @@ proxy_cache_min_uses 2; ...@@ -32,3 +32,9 @@ proxy_cache_min_uses 2;
# Show our own error pages, not the remote ones. # Show our own error pages, not the remote ones.
proxy_intercept_errors on; proxy_intercept_errors on;
# Ensure we only send one upstream request, and allow NGINX to serve
# stale data while updating.
proxy_cache_use_stale updating;
proxy_cache_background_update on;
proxy_cache_lock on;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment