File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ version of `Linked Cache Invalidation`_ (LCI), allows you to:
1818* :ref: `invalidate the responses by tag <foshttpcache:tags >` (e.g., invalidate
1919 all responses that are tagged ``article-42 ``)
2020
21+ .. hint ::
22+
23+ When working with Varnish, it is recommended to use the xkey vmod for
24+ efficient invalidation. See :ref: `Tagging with Varnish <foshttpcache:varnish_tagging >`
25+ and :ref: `configure the proxy client for purgekeys <config_varnish_tag_mode >`.
26+
2127Basic Configuration
2228-------------------
2329
Original file line number Diff line number Diff line change @@ -92,12 +92,15 @@ URL may contain a path. If you access your web application on a port other than
9292 Double-check ``base_url ``, for if it is mistyped, no content will be
9393 invalidated.
9494
95+ .. _config_varnish_tag_mode :
96+
9597``tag_mode ``
9698""""""""""""
9799
98100**type **: ``string `` **options **: ``ban ``, ``purgekeys `` **default **: ``ban ``
99101
100- Select whether to invalidate tags using the `xkey vmod `_ or with BAN requests.
102+ Select whether to invalidate tags using the :ref: `xkey vmod <foshttpcache:varnish_tagging >`
103+ or with BAN requests.
101104
102105Xkey is an efficient way to invalidate Varnish cache entries based on
103106:doc: `tagging </features/tagging >`.
@@ -110,10 +113,13 @@ default ``xkey-softpurge``.
110113
111114.. note ::
112115
113- To use the purgekeys method, you need the ` xkey vmod `_ enabled and VCL to
116+ To use the purgekeys method, you need the xkey vmod enabled and VCL to
114117 handle xkey invalidation requests as explained in the
115118 :ref: `FOSHttpCache library docs on xkey support <foshttpcache:varnish_tagging >`.
116119
120+ ``tags.response_header `` will automatically default to ``xkey `` when you
121+ set the mode to purgekeys.
122+
117123``tags_header ``
118124"""""""""""""""
119125
Original file line number Diff line number Diff line change @@ -33,9 +33,16 @@ incompatible proxies:
3333 ``response_header ``
3434-------------------
3535
36- **type **: ``string `` **default **: ``X-Cache-Tags ``
36+ **type **: ``string `` **default **: ``X-Cache-Tags `` resp. `` xkey ``
3737
38- Custom HTTP header that tags are stored in.
38+ HTTP header that tags are stored in.
39+
40+ .. note ::
41+
42+ If you use :ref: `Varnish xkey system <config_varnish_tag_mode >`, (having
43+ ``proxy_client.varnish.tag_mode: purgekeys ``), the response header defaults
44+ to ``xkey `` rather than ``X-Cache-Tags ``. Do not change the header in that
45+ case, the xkey header name is hardcoded into the xkey vmod.
3946
4047.. include :: /includes/expression-language.rst
4148
You can’t perform that action at this time.
0 commit comments