is the POST content reforwarded in case of a restart ?

cosmih cosmih at gmail.com
Mon Apr 18 21:45:31 CEST 2011


Hello,

Because I haven't found this information anywhere I would like to ask
you if the POST content will be forwarded again in case a restart is
involved like in the below example:

sub vcl_recv {
   set req.http.ORIGINAL-REQUEST = req.url;
   if (req.url ~ "^/path1/somthing/else" ) {
      set req.url = reqsub(req.url, "/path1/(.*)$", "/path2/\1");
      set backend = round_robin_director;
   }
}

sub vcl_fetch {
   if (beresp.status == 500 || beresp.status == 400) {
      set beresp.saintmode = 5s;
      set req.url = req.http.ORIGINAL-REQUEST;
      restart;
   }
}

sub vcl_error {
   if (obj.status == 503 && req.restarts < 6) {
      set req.url = req.http.ORIGINAL-REQUEST;
      restart;
   }
}


Regards,

--
Cosmih




More information about the varnish-misc mailing list