Reported at #2644146-9: BigPipe Varnish documentation: Surrogate-Control header value's future evolution? by @bugsonly:
fyi,
for current Varnish v4, vcl_fetch() has been replaced by vcl_backend_response(), cref: https://www.varnish-cache.org/docs/4.0/whats-new/upgrading.html#vcl-fetc...
and,
set beresp.ttl = 0;throws a VCL compile error
Jan 18 11:18:04 test.loc varnishd[11250]: Error: Jan 18 11:18:04 test.loc varnishd[11250]: Message from VCC-compiler: Jan 18 11:18:04 test.loc varnishd[11250]: Expected ID got ';' Jan 18 11:18:04 test.loc varnishd[11250]: (program line 166), at Jan 18 11:18:04 test.loc varnishd[11250]: ('input' Line 437 Pos 35) Jan 18 11:18:04 test.loc varnishd[11250]: set beresp.ttl = 0; Jan 18 11:18:04 test.loc varnishd[11250]: ----------------------------------# Jan 18 11:18:04 test.loc varnishd[11250]: Running VCC-compiler failed, exited with 2 Jan 18 11:18:04 test.loc varnishd[11250]: VCL compilation failedshould be, instead,
set beresp.ttl = 0s;
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2652692-2.patch | 629 bytes | wim leers |
Comments
Comment #2
wim leersComment #3
wim leersI'd like a +1 from Fabian.
Comment #4
fabianx commentedRTBC - looks good to me, but did not test it.
Comment #6
wim leersFixed and committed. Credited @bugsonly in the commit, gave him issue credit on the original issue: #2644146-12: BigPipe Varnish documentation: Surrogate-Control header value's future evolution?.
Comment #7
wim leers