[gbm-web] redirector: Use original URI as the cache key
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbm-web] redirector: Use original URI as the cache key
- Date: Wed, 3 Feb 2021 14:52:22 +0000 (UTC)
commit d5c5103401d992ad6d18f8f0ba04ab7360d4b984
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Feb 3 15:52:01 2021 +0100
redirector: Use original URI as the cache key
redirector/nginx.conf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/redirector/nginx.conf b/redirector/nginx.conf
index fa02937..cc646b3 100644
--- a/redirector/nginx.conf
+++ b/redirector/nginx.conf
@@ -59,6 +59,7 @@ http {
location @s3cache {
resolver 1.1.1.1;
+ set $original_uri $uri;
set $redirect_location '$upstream_http_location';
proxy_http_version 1.1;
@@ -76,7 +77,7 @@ http {
proxy_pass $redirect_location;
proxy_cache s3cache;
- proxy_cache_key $upstream_cache_status;
+ proxy_cache_key $original_uri;
proxy_cache_valid 200 15d;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]