Varnish Cache Plus

Last Byte Timeout

Varnish 6.0


last_byte_timeout is the amount of time, in seconds, to wait for a complete backend response. A value of 0 means this setting is not used. This parameter has a default value of 0. This can be set with a varnishd -p parameter, a backend definition or bereq variable.


sub vcl_backend_fetch {
        # Give all requests with a URL ending in
        # .zip 4 seconds to finish
        if (urlplus.get_extension() == "zip") {
	        set bereq.last_byte_timeout = 4s;