x-accel-redirect enables caching for POST requests

gglater62 nginx-forum at forum.nginx.org
Tue Feb 9 20:53:45 UTC 2016


I found a workaround:

set $method $request_method;
if ($request ~ ^POST) { set $method POST; }
fastcgi_param REQUEST_METHOD $method;

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263661,264447#msg-264447



More information about the nginx mailing list