File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 2828# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2929# SUCH DAMAGE.
3030#
31- # This is the builtin VCL code
31+ # This file contains the builtin VCL code.
32+ #
33+ # All subroutines in this file can be overridden by user-provided VCL.
34+ #
35+ # There are two main patterns for overridable subroutines:
36+ #
37+ # 1. `vcl_builtin_*` subroutines: These wrap core Varnish logic. When you
38+ # override these in user VCL, your code runs first, followed by the
39+ # builtin VCL code (unless you `return()`). Note that calling
40+ # `vcl_builtin_*` from your own `vcl_builtin_*` does not work (triggers
41+ # recursion check).
42+ #
43+ # 2. `vcl_req_*`, `vcl_beresp_*`, etc. subroutines: These act as specific
44+ # "hooks" within the default Varnish behavior. Overriding these allows
45+ # you to modify a narrow aspect of behavior without reimplementing the
46+ # entire parent `vcl_builtin_*` logic.
47+ #
48+ # Consult the Varnish documentation for details on each subroutine and
49+ # its intended use.
3250
3351vcl 4.0 ;
3452
You can’t perform that action at this time.
0 commit comments