Nginx proxy_cache_key $request_body is ignored for large request body

后端 未结 2 1038
栀梦
栀梦 2021-02-20 02:32

I use nginx as a reverse proxy and I would like it to cache POST requests. My back-end is correctly configured to return appropriate cache-control headers for POST requests. In

2条回答
  •  一个人的身影
    2021-02-20 03:07

    So it turns out that when $content_length > client_body_buffer_size, then the request body is written to a file and the variable $request_body == "".

    See also http://mailman.nginx.org/pipermail/nginx/2013-September/040442.html

提交回复
热议问题