Varnish Enterprise 6.0.18r9 Release

Published November 30, 2026.

About the release

Varnish Enterprise 6.0.18r9 is a feature and bug fix release.

This release brings back the major update of the VCL compiler from 6.0.18r7, which was removed. The update brings the VCL syntax of Varnish Enterprise almost on par with Varnish Cache 9.0. It adds ACL options, BLOB literals, VMOD import aliases, glob includes and string methods. It does not add new VCL variables.

The ACL regression that caused the removal of 6.0.18r7 is fixed. ACLs now default to +log -fold -pedantic, so existing ACLs compile and match as they did in 6.0.18r6 and 6.0.18r8.

The update comes with a few minor breaking changes to VCL, and major breaking changes for third-party VMODs, which must be adapted and rebuilt. This also applies to VMODs built for 6.0.18r7. VMODs shipped with Varnish Enterprise are already updated. Read the breaking changes before upgrading, and run varnishd -C -f /etc/varnish/default.vcl to confirm your VCL still compiles. The VCL changes are narrow, and most VCL should compile without modification. As with any upgrade, we recommend validating it in a staging environment before rolling it out to production.

Breaking changes

  • Quoted header names: Header names that are not valid VCL identifiers must now be quoted. This removes ambiguities like req.http.req.http.example, where it was impossible to tell a spelling mistake from a header actually called req.http.example.

    set resp.http."123" = "456";
    set req.http."req.http.example" = "value";
    
  • unused keyword: The new unused keyword marks backends, probes, ACLs and subroutines as intentionally unused, which disables the compilation error for them. A VCL symbol named unused, for example an object created with new unused = ..., must be renamed.

  • Assigning resp.body and beresp.body: An assignment now replaces the body instead of appending to it. Use the new += operator to append. synthetic() still appends.

    sub vcl_synth {
            set resp.body = "Hello ";
            set resp.body += "world";
            return (deliver);
    }
    
  • Scientific notation: Numbers in scientific notation, like 2.5e-3, are no longer accepted.

  • Unset IP addresses: Comparing an unset IP address now fails the task instead of evaluating as not equal. This affects VMOD functions that may return no IP address.

  • Stack usage: VCL uses somewhat more stack than before. Deep ESI nesting or complex VCL may need a larger thread_pool_stack, especially if it was lowered from its default.

  • VMOD API: There are many breaking changes for VMODs, most prominently the removal of the STRING_LIST type and slightly different code generation from vmodtool.py. See vrt.h for the list of additions and breaking changes. Third-party VMODs must be adapted and rebuilt for this release.

New features

  • ACL options: ACLs can now take options, enabled or disabled with a plus or minus prefix: log logs in VSL whether the ACL matched, table implements the ACL with a table instead of compiled code, fold folds subnets and adjacent networks, and pedantic rejects entries with non-zero host bits, like "192.0.2.1"/24. Unlike Varnish Cache, ACLs default to +log -fold -pedantic, which keeps their previous behavior.

    acl purgers -log +pedantic {
            "192.0.2.0"/24;
    }
    
  • BLOB literals: Base64 data between colons is a BLOB literal. It can be passed to VMOD functions taking a BLOB argument, or assigned to resp.body and beresp.body, which now accept both strings and BLOBs.

    sub vcl_synth {
            set resp.body = :aGVsbG8gd29ybGQ=:;
            return (deliver);
    }
    
  • VMOD import aliases: A VMOD can be imported under a different name.

    import headerplus as hdr;
    
    sub vcl_recv {
            hdr.init_req();
    }
    
  • Glob includes: include +glob includes all files matching a pattern. The pattern must be an absolute path or start with ./.

    include +glob "/etc/varnish/example.org/*.vcl";
    
  • String methods: String types (STRING, STRANDS and HEADER) have .lower() and .upper() methods returning a lower- or upper-case copy of the string.

    sub vcl_hash {
            hash_data(req.http.host.lower());
    }
    
  • For VMOD authors: New REGEX and SUB types represent compiled regular expressions and VCL subroutines. The new $Alias stanza renames a function or method while keeping the old name as a deprecated alias. Varnish Enterprise VMODs may use it to improve naming, with a grace period before obsolete aliases are removed.

  • ClientError log records: Client-side errors are now logged with a new ClientError tag, the counterpart of FetchError for backend errors. Some errors formerly logged as FetchError are now logged as ClientError, so VSL queries on FetchError may need to include the new tag:

    varnishncsa -q 'ClientError,FetchError ~ "timeout"'
    
  • Storage sharding in cluster.vcl: The new sharding option persists objects on only that many nodes instead of all of them. cluster_auto_dns.vcl exposes it through the VARNISH_CLUSTER_SHARDING environment variable.

  • Faster VCL reloads with ccache: The new vcl-ccache script can be used as cc_command to compile VCL with ccache, so that loading the same VCL again is faster.

  • Per-backend TLS session caching: The new .tls_session_cache backend attribute overrides the backend_tls_sess_cache parameter for a single TLS backend.

  • headerplus.from_json() has a new decode parameter to decode JSON escapes in header names and values, and accounting namespaces and keys can now be up to 255 characters long.

A few VCL changes from Varnish Cache are not part of this release, including the .resolve() method and the .via attribute for backends. See the changelog for the full list. They may appear in future releases.

Notable fixes

  • kvstore: fixed a deadlock when a .lock() holder writes to the same bucket while another task waits for the lock, and several crashes. A held lock now fails .set(), .counter(), .gauge() and .limit() instead of being destroyed. (VS issues #2015, #2782 and #3304)

  • MSE4: fixed a crash when a store write failed while the object was being delivered, and memory cache chunks that could stay in memory for the lifetime of their object. (VS issue #3589)

  • std.rollback() no longer panics when given the wrong HTTP argument. The argument is now optional and ignored, and the right HTTP object is inferred from where it is called.

  • A pipe_timeout of about 24.8 days or more no longer closes piped connections right away.

  • vmod_crypto no longer crashes the cache process when the kernel does not support a requested algorithm. The VCL fails instead.

See the changelog for the complete list of changes.

References


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203