<p dir="ltr">It can, you will have to play a bit with the retry/restart mechanics after changing and cleaning bereq.url.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Dec 1, 2016 23:49, "Star Dot" <<a href="mailto:stardothosting@gmail.com">stardothosting@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hello!<br><br></div>I am dealing with Varnish 4 piping requests to a backend server. The backend server processes the request and redirects to Amazon S3 to serve the actual file.<br><br></div>So in short :<br><br></div>Request -> Varnish -> Nginx 302 Redirect -> Amazon S3 file<br><br></div>Varnish is happily caching the 302 response only, but I'm curious if I can somehow follow the redirect and cache the destination file completely? This will alleviate load off the nginx server obviously. <br><br></div>I've seen several topics dance around this issue but I'm curious if osmeone can point me in the right direction!<br><br></div>Thanks<br clear="all"><div><div><div><div><div><div><div><div><div><div class="m_6347280179175622206gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>--<br><br><br></div>StackStar Managed Hosting Services : <a href="https://www.stackstar.com" target="_blank">https://www.stackstar.com</a><br></div>Shift8 Web Design in Toronto : <a href="https://www.shift8web.ca" target="_blank">https://www.shift8web.ca</a><br></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br></blockquote></div></div>