diff --git a/nginx/default.conf b/nginx/default.conf index 3f45859..e0d455a 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -7,7 +7,7 @@ server { proxy_cache request_cache; proxy_cache_valid 200 60m; proxy_cache_valid 404 10m; - proxy_cache_key $scheme$host$request_uri; + proxy_cache_key $uri; proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; add_header X-Cache $upstream_cache_status; @@ -16,8 +16,8 @@ server { expires 30d; add_header Cache-Control "public, no-transform"; - proxy_set_header Host $host; proxy_pass http://nsite; + proxy_set_header Host $host; } # Manual cache invalidation ( cant use proxy_cache_purge )