VCL coding style

by , , revisited on

We have by far the largest RPM repository with dynamic stable NGINX modules and VMODs for Varnish 4.1 and 6.0 LTS. If you want to install NGINX, Varnish, and lots of useful modules for them, this is your one-stop repository to get all performance-related software.
You have to maintain an active subscription in order to be able to use the repository!

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 /*.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: