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 307.
$ 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
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>307 Temporary Redirect</title>
</head><body>
<h1>Temporary Redirect</h1>
<p>The document has moved <a href="">test.example.com/img.svg">here</a>.</p>
</body></html>
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 307.
$ 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
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>307 Temporary Redirect</title>
</head><body>
<h1>Temporary Redirect</h1>
<p>The document has moved <a href="">test.example.com/img.svg">here</a>.</p>
</body></html>
My anomised squid.conf is attached.
Thanks in advance for clarification
zigi
Attachment:
squid.conf
Description: Binary data
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users