From 608c7111aaabc72859f177c7d47e52a617026b50 Mon Sep 17 00:00:00 2001 From: Konstantin Monakhov Date: Sun, 10 Sep 2023 22:08:50 +0600 Subject: [PATCH] examples: fixed errors with the if-match header in the examples of rgw-cache nginx configs Signed-off-by: Konstantin Monakhov --- examples/rgw/rgw-cache/nginx-default.conf | 2 +- examples/rgw/rgw-cache/nginx-noprefetch.conf | 1 + examples/rgw/rgw-cache/nginx-slicing.conf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/rgw/rgw-cache/nginx-default.conf b/examples/rgw/rgw-cache/nginx-default.conf index c22d155312d..f8e4f257be2 100644 --- a/examples/rgw/rgw-cache/nginx-default.conf +++ b/examples/rgw/rgw-cache/nginx-default.conf @@ -122,7 +122,7 @@ server { set $do_not_cache "no"; set $date $http_x_amz_date; } - proxy_set_header if_match $http_if_match; + proxy_set_header if-match $http_if_match; proxy_set_header Range $myrange; # Use the original x-amz-date if the aws auth module didn't create one proxy_set_header x-amz-date $date; diff --git a/examples/rgw/rgw-cache/nginx-noprefetch.conf b/examples/rgw/rgw-cache/nginx-noprefetch.conf index 02294415a04..02645b7586b 100644 --- a/examples/rgw/rgw-cache/nginx-noprefetch.conf +++ b/examples/rgw/rgw-cache/nginx-noprefetch.conf @@ -90,6 +90,7 @@ server { if ($request_uri ~* (\?)) { set $do_not_cache "no"; } + proxy_set_header if-match $http_if_match; # Use the original x-amz-date if the aws auth module didn't create one proxy_no_cache $do_not_cache; proxy_set_header Authorization $http_authorization; diff --git a/examples/rgw/rgw-cache/nginx-slicing.conf b/examples/rgw/rgw-cache/nginx-slicing.conf index 3de4c67fcf0..4aae830ae73 100644 --- a/examples/rgw/rgw-cache/nginx-slicing.conf +++ b/examples/rgw/rgw-cache/nginx-slicing.conf @@ -124,7 +124,7 @@ server { set $do_not_cache "no"; set $date $http_x_amz_date; } - proxy_set_header if_match $http_if_match; + proxy_set_header if-match $http_if_match; # Use the original x-amz-date if the aws auth module didn't create one proxy_set_header x-amz-date $date; proxy_set_header X-Amz-Cache $authvar; -- 2.39.5