[odrs-web] nginx: Cache POST queries



commit b944f179f2e8fdc801981f295299d2c49f527d00
Author: Bartłomiej Piotrowski <b bpiotrowski pl>
Date:   Thu Aug 25 22:58:59 2022 +0200

    nginx: Cache POST queries

 nginx.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/nginx.conf b/nginx.conf
index e38e7bc..304365c 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -63,7 +63,8 @@ http {
 
         location / {
             proxy_cache cache;
-            proxy_cache_valid 200 15m;
+            proxy_cache_valid 200 1m;
+            proxy_cache_methods GET HEAD POST;
             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]