<div dir="ltr">Hi,<div><br></div><div>If location /a/ redirects a POST request to location /b/ using X-Accel-Redirect then result of the POST request is cached.</div><div><br></div><div>Tested this and reproduced with nginx 1.6.3 and 1.9.7.</div><div><br></div><div>Setup:</div><div><a href="https://gist.github.com/ruz/4a66ee78fedf27181799">https://gist.github.com/ruz/4a66ee78fedf27181799</a></div><div><br></div><div>Logs from hitting /a/:</div><div><div>[1450873503.675] 200 HIT 127.0.0.1 "POST /a/ HTTP/1.1" [0.001, 0.001] {<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>}</div><div>[1450873504.113] 200 HIT 127.0.0.1 "POST /a/ HTTP/1.1" [0.001, 0.001] {<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>}</div><div>[1450873504.529] 200 HIT 127.0.0.1 "POST /a/ HTTP/1.1" [0.002, 0.002] {<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>}</div><div>[1450873567.648] 200 EXPIRED 127.0.0.1 "POST /a/ HTTP/1.1" [0.001 : 0.002, 0.003] {<a href="http://127.0.0.1:5000">127.0.0.1:5000</a> : <a href="http://127.0.0.1:5000">127.0.0.1:5000</a>}</div><div><br></div><div><div>Logs from hitting /b/ directly:</div><div></div></div><div>[1450875056.289] 200 - 127.0.0.1 "POST /b/ HTTP/1.1" [0.005, 0.005] {<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>}<br></div><div>[1450875058.073] 200 - 127.0.0.1 "POST /b/ HTTP/1.1" [0.001, 0.001] {<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>}</div></div><div><br></div><div>Looks like a bug to me. Do I miss something?</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Руслан Закиров</div><div>Руководитель отдела разработки веб-сервисов</div><div><span>+7(916) 597-92-69</span>, <span>ruz @ <a href="http://www.sports.ru/" target="_blank"><img src="http://farm7.static.flickr.com/6235/6210250811_19a888dbba_o.jpg" width="43" height="14" style="vertical-align: bottom; margin-right: 0px;"></a></span></div></div></div>
</div></div>