Skip to content

Commit d20cfcc

Browse files
committed
proxy_cache_key
1 parent 763674c commit d20cfcc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

install/debian/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ http {
8282

8383
# Cache
8484
proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m;
85+
proxy_cache_key "$host$request_uri $cookie_user";
8586
proxy_temp_path /var/cache/nginx/temp;
8687
proxy_ignore_headers Expires Cache-Control;
8788
proxy_cache_use_stale error timeout invalid_header http_502;

install/ubuntu/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ http {
8282

8383
# Cache
8484
proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m;
85+
proxy_cache_key "$host$request_uri $cookie_user";
8586
proxy_temp_path /var/cache/nginx/temp;
8687
proxy_ignore_headers Expires Cache-Control;
8788
proxy_cache_use_stale error timeout invalid_header http_502;

0 commit comments

Comments
 (0)