<div dir="ltr"><div>Hi all,<br><br>  I want to ask why my Squid does not cache redirects 301, 302 and 307. See anomised example below. Even if I call the URL more times or I open it in the browser, I always get MISS <span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-alt-edited">independently of the return code 301, 302 or 307.</span></span><br><br><span style="font-family:monospace,monospace">$ curl -v <a href="http://test.example.com/img307.jpg">test.example.com/img307.jpg</a><br><br>> GET /img307.jpg HTTP/1.1<br>> Host: </span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><a href="http://test.example.com">test.example.com</a></span><br>> User-Agent: curl/7.50.1<br>> Accept: */*<br>><br>< HTTP/1.1 307 Temporary Redirect<br>< Date: Tue, 19 Sep 2017 12:27:50 GMT<br>< Server: Apache<br>< Location: http://</span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><a href="http://test.example.com">test.example.com</a></span></span>/img.svg<br>< Content-Length: 249<br>< Content-Type: text/html; charset=iso-8859-1<br>< <b>X-Cache: MISS</b> from <squid-proxy><br>< <b>X-Cache-Lookup: MISS</b> from <squid-proxy>:3128<br>< Connection: keep-alive<br><<br><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br><html><head><br><title>307 Temporary Redirect</title><br></head><body><br><h1>Temporary Redirect</h1><br><p>The document has moved <a href="http://</span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><a href="http://test.example.com">test.example.com</a></span></span>/img.svg">here</a>.</p><br></body></html><br><br><br></span></div><div>My anomised squid.conf is attached.<br><br></div><div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-alt-edited">Thanks in advance for clarification<br></span></span></div><div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-alt-edited"><br>  zigi<br></span></span></div><div><span style="font-family:monospace,monospace"><br><br clear="all"></span>
</div></div>