File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,8 @@ location /out/tampere-api.giravolta.io/ {
283
283
add_header X-Proxy-Cache $upstream_cache_status;
284
284
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
285
285
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
286
+ #Default caching would use the $proxy_host so we need custom rule to use request host
287
+ proxy_cache_key $scheme$host$request_uri;
286
288
proxy_set_header Authorization GIRAVOLTA_TAMPERE_AUTH;
287
289
}
288
290
@@ -298,5 +300,7 @@ location /out/vantaa-api.giravolta.io/ {
298
300
add_header X-Proxy-Cache $upstream_cache_status;
299
301
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
300
302
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
303
+ #Default caching would use the $proxy_host so we need custom rule to use request host
304
+ proxy_cache_key $scheme$host$request_uri;
301
305
proxy_set_header Authorization GIRAVOLTA_VANTAA_AUTH;
302
306
}
You can’t perform that action at this time.
0 commit comments