In the Varnish book (and every site reposting the same example), we are shown
how to make a redirect in VCL by using 'error 750'.[1]  This seems more
roundabout than necessary - why not just use 'error 302'?  It'll end up being
the same to the users, but is more clear in its intention.

The only reason I can think of for not doing that is if you have any cases
where you want to display an error page with a 302 status code, but *not*
redirect.  But why would you want to do that?

[1]: 
https://www.varnish-software.com/static/book/VCL_functions.html#example-redirecting-users-with-vcl-error


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to