Is Varnish 4 able to follow a redirect and cache the destination?

Star Dot stardothosting at gmail.com
Thu Dec 1 23:23:19 CET 2016


Hello!

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.

So in short :

Request -> Varnish -> Nginx 302 Redirect -> Amazon S3 file

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.

I've seen several topics dance around this issue but I'm curious if osmeone
can point me in the right direction!

Thanks
--


StackStar Managed Hosting Services : https://www.stackstar.com
Shift8 Web Design in Toronto : https://www.shift8web.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20161201/a0fd55db/attachment.html>


More information about the varnish-misc mailing list