VCL coding style
by Danila Vershinin, , revisited on
GetPageSpeed keeps NGINX and Varnish servers fast and secure: performance modules and builds, plus security fixes within days, all through routine
Free to install; commercial production use requires a subscription.
dnf, yum or apt upgrades. It maintains the largest RPM repository of NGINX module packages and Varnish VMODs, with APT packages for Debian and Ubuntu.
Free to install; commercial production use requires a subscription.
Indentation: 4 spaces.
Function opening bracket on the same line with definition:
sub vcl_miss {
return (fetch);
}
Single lines of VCL can be commented out using // or #. Multi-line blocks can be commented out with /* block /*.