Skip to content

Commit

Permalink
Merge pull request #245 from HSLdevcom/fix-cache-validity
Browse files Browse the repository at this point in the history
Try caching any to fix issues with 404 being returned indefinetly
  • Loading branch information
vesameskanen authored Dec 29, 2023
2 parents e3bc53b + 6122c78 commit 14658aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions external.conf
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ location = /out/tampere-api.giravolta.io/api-opendata/gbfs/2_3/gbfs {
proxy_pass https://api.giravolta.io/api-opendata/gbfs/2_3/gbfs;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -394,7 +394,7 @@ location /out/tampere-api.giravolta.io/ {
proxy_pass https://api.giravolta.io/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -413,7 +413,7 @@ location = /out/vantaa-api.giravolta.io/api-opendata/gbfs/2_3/gbfs {
proxy_pass https://api.giravolta.io/api-opendata/gbfs/2_3/gbfs;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -431,7 +431,7 @@ location /out/vantaa-api.giravolta.io/ {
proxy_pass https://api.giravolta.io/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -446,7 +446,7 @@ location /out/rata.digitraffic.fi/ {
proxy_pass https://rata.digitraffic.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand Down

0 comments on commit 14658aa

Please sign in to comment.