I am using varnish 3.0 on ubuntu 11 – the redirect is being handled by expressjs(v2.5.8 – running node.js 0.6) – the redirect is called by express (works without varnish in between) but when varnish is used in between, the redirect to a new page gets blocked (displays ‘Error 302 found’).
In the vcl config file for varnish, I have attempted to pass(return) based on URL and Referer (in the sub vcl_recv section) but I appear to have misconfigured (or need to add more config steps). Any thoughts/suggestions for changes in the vcl file would be quite welcome which would allow varnish to let expressjs redirect to new page.
Thanks in advance.
Changing the sub_vcl_fetch fixed it.
I have copied part of the sub_vcl_fetch section from my vcl file below:
sub vcl_fetch {
Hope this helps!