trivial vmod to determine if esi processing is active in vcl_deliver{}
Find a file
2023-06-13 14:01:38 +02:00
src Use $Restrict 2023-06-13 14:01:38 +02:00
.gitignore initial 2019-05-23 14:48:59 +02:00
bootstrap initial 2019-05-23 14:48:59 +02:00
configure.ac Fix AC_ARG_WITH syntax 2023-06-13 13:59:56 +02:00
Makefile.am initial 2019-05-23 14:48:59 +02:00
README.rst add README 2019-05-23 14:53:33 +02:00

..
.. NB:  This file is machine generated, DO NOT EDIT!
..
.. Edit vmod.vcc and run make instead
..

.. role:: ref(emphasis)

===========
VMOD objesi
===========

---------------------
Varnish objesi Module
---------------------

:Manual section: 3

SYNOPSIS
========

.. parsed-literal::

  import objesi [from "path"]
  
  BOOL is_esi()
  
DESCRIPTION
===========

This vmod specifically adds a way to determine if ESI processing is
not only enabled, but actually active for delivery of an object. It
basically compensates for the issue documented in
https://github.com/varnishcache/varnish-cache/issues/3002

For ESI delivery to be active, ``beresp.do_esi`` must have been
enabled when the respective object went into the cache, it must have
been enabled for ESI processing (see, for example the
``esi_disable_xml_check`` feature flag) and ``resp.do_esi`` must be
true.

Example::

	import objesi;

	sub vcl_deliver {
	    if (objesi.is_esi) {
		# ... do things to happen only for esi
	    }
	}

.. _vmod_objesi.is_esi:

BOOL is_esi()
-------------

Return true if ESI processing is active.

May only be called from ``vcl_deliver {}``.

SEE ALSO
========vcl\(7),varnishd\(1)