April 2020 VCL release
Today the minimum version of VCL available across our network increased, unlocking the following changes:
New variables
client.geo.conn_typeclient.geo.proxy_typeclient.geo.proxy_descriptionclient.geo.region.utf8client.geo.region.asciiclient.geo.region.latin1beresp.backend.src_ip
New functions
digest.hash_sha1_from_base64digest.hash_sha256_from_base64digest.hash_sha512_from_base64h2.disable_header_compressionmath.expmath.exp2math.logmath.log2math.log10xml_escapestd.dirnamestd.basenametable.containstable.lookup_acltable.lookup_booltable.lookup_integertable.lookup_floattable.lookup_iptable.lookup_backendtable.lookup_rtime
Linting changes
We introduced new compiler warnings when we detect common mistakes in use of regular expressions:
- Unanchored file extension:
req.url ~ "\.html"most likely should bereq.url ~ "\.html$" - Literal dots in file extensions and hostnames:
req.http.host ~ "example.com"most likely should beexample\.com
VCL containing expressions matching these patterns will still compile and deploy as before, but warnings will be returned both in the API and management web interface.
Following change: June 2020 VCL release