From: Konstantin Monakhov Date: Sun, 10 Sep 2023 16:08:50 +0000 (+0600) Subject: examples: fixed errors with the if-match header in the examples of rgw-cache nginx... X-Git-Tag: v19.0.0~492^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=608c7111aaabc72859f177c7d47e52a617026b50;p=ceph.git examples: fixed errors with the if-match header in the examples of rgw-cache nginx configs Signed-off-by: Konstantin Monakhov --- diff --git a/examples/rgw/rgw-cache/nginx-default.conf b/examples/rgw/rgw-cache/nginx-default.conf index c22d155312d49..f8e4f257be2a9 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 02294415a04c2..02645b7586be7 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 3de4c67fcf0fc..4aae830ae73fe 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;