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

kAja Ziegler ziegleka at gmail.com
Thu Sep 21 08:11:48 UTC 2017


Thank you to pointing me on such nice tool.

zigi

On Tue, Sep 19, 2017 at 4:54 PM, Eliezer Croitoru <eliezer at ngtech.co.il>
wrote:

> As you can see in the response headers there are no rules for caching:
> < HTTP/1.1 307 Temporary Redirect
> < Date: Tue, 19 Sep 2017 12:27:50 GMT
> < Server: Apache
> < Location: http://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
>
> If you have a specific service try to use redbot to analyze the response:
> https://redbot.org/
>
> It might give you what you need.
>
> All The Bests,
> Eliezer
>
> * I do not know if it should be this way or not since I am missing couple
> things from the setup such as squid.conf..
>
> ----
> http://ngtech.co.il/lmgtfy/
> Linux System Administrator
> Mobile: +972-5-28704261
> Email: eliezer at ngtech.co.il
>
>
> From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On
> Behalf Of kAja Ziegler
> Sent: Tuesday, September 19, 2017 17:00
> To: squid-users at lists.squid-cache.org
> Subject: [squid-users] When the redirect [301, 302, 307] is cached by
> Squid?
>
> 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 http://test.example.com/img307.jpg
>
> > GET /img307.jpg HTTP/1.1
> > Host: http://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://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="http://http://test.example.com/img.svg
> ">here</a>.</p>
> </body></html>
>
> My anomised squid.conf is attached.
> Thanks in advance for clarification
>
>   zigi
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170921/27f76785/attachment.html>


More information about the squid-users mailing list