Skip to content

Commit

Permalink
fix: respect cache settings for static files from PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi authored and shauke committed Nov 29, 2023
1 parent f1e8947 commit cc2057a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nginx/templates/multi-channel.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $thescheme;

proxy_ignore_headers Cache-Control;
proxy_cache_valid 200 302 {{ getenv "CACHE_DURATION_NGINX_OK" }};
proxy_cache_valid 404 {{ getenv "CACHE_DURATION_NGINX_NF" }};
add_header X-Cache-Status $upstream_cache_status;

proxy_pass {{ $UPSTREAM_PWA }};
proxy_buffer_size 128k;
Expand Down

0 comments on commit cc2057a

Please sign in to comment.