[squid-users] When the redirect [301, 302, 307] is cached by Squid?

kAja Ziegler ziegleka at gmail.com
Tue Sep 19 14:00:25 UTC 2017

Hi all,

  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 independently of the return code 301, 302 or

$ curl -v test.example.com/img307.jpg

> GET /img307.jpg HTTP/1.1
> Host: test.example.com
> User-Agent: curl/7.50.1
> Accept: */*
< HTTP/1.1 307 Temporary Redirect
< Date: Tue, 19 Sep 2017 12:27:50 GMT
< Server: Apache
< Location: http://test.example.com/img.svg
< Content-Length: 249
< Content-Type: text/html; charset=iso-8859-1
< *X-Cache: MISS* from <squid-proxy>
< *X-Cache-Lookup: MISS* from <squid-proxy>:3128
< Connection: keep-alive
<title>307 Temporary Redirect</title>
<h1>Temporary Redirect</h1>
<p>The document has moved <a href="http://test.example.com

My anomised squid.conf is attached.

Thanks in advance for clarification

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170919/8c878dcb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squid.conf
Type: application/octet-stream
Size: 4105 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170919/8c878dcb/attachment.obj>

More information about the squid-users mailing list