[Varnish] #1508: 301 Redirects in VCL not working properly

Varnish varnish-bugs at varnish-cache.org
Wed May 21 20:11:31 CEST 2014

#1508: 301 Redirects in VCL not working properly
 Reporter:  mightymongoose  |       Type:  defect
   Status:  new             |   Priority:  normal
Milestone:                  |  Component:  build
  Version:  4.0.0           |   Severity:  normal
 Keywords:  301 redirect    |
 if (req.url == "/something") {
         set req.url = "/something/";
         return (synth(301, "Response"));

 So maybe I am mistaken, but the above code, while returning a 301
 response, does not redirect to the new URL. Yet it compiles and all.
 Documentation seems sparse on this subject, but I think this is a bug?

 Fiddler/chrome both just show a 301 error response with no redirect.

Ticket URL: <https://www.varnish-cache.org/trac/ticket/1508>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list