[odrs-web] nginx: Add $request_body to proxy_cache_key
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] nginx: Add $request_body to proxy_cache_key
- Date: Thu, 25 Aug 2022 21:13:59 +0000 (UTC)
commit 4f94fa218da4bcbd4c590648190d80b72bdf28a1
Author: Bartłomiej Piotrowski <b bpiotrowski pl>
Date: Thu Aug 25 23:13:37 2022 +0200
nginx: Add $request_body to proxy_cache_key
nginx.conf | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/nginx.conf b/nginx.conf
index 304365c..5c9e652 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -65,6 +65,7 @@ http {
proxy_cache cache;
proxy_cache_valid 200 1m;
proxy_cache_methods GET HEAD POST;
+ proxy_cache_key "$request_uri|$request_body";
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_revalidate on;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]