Skip to content

Commit

Permalink
Re-adding text lost in dd5aba8
Browse files Browse the repository at this point in the history
  • Loading branch information
gquintard committed Jul 4, 2022
1 parent 0329e25 commit abe5a70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vmod_xkey.vcc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ header for a certain page might look like this::
xkey: 166412
xkey: 234323

Alternatively you may instead use a single header with space separated
values like ``xkey: 8155054 166412 234323``.

This requires a bit of VCL to be in place. The VCL can be found above.

Then, in order to keep the web in sync with the database, a trigger is
Expand All @@ -79,6 +82,13 @@ with the matching xkey header::
Host: www.example.com
xkey: 166412

Several ``xkey-purge`` headers are also supported like in the response
example above, and you may also here use a single header with space
seperated values like ``xkey-purge: 166412 234323``.

Unlike `xkey` header for responses, purge header is fully configurable
by means of adjusting the name of the header in the VCL example above.

Note the xkey header. It is probably a good idea to protect
this with an ACL so random people from the Internet cannot purge your
cache.
Expand Down

0 comments on commit abe5a70

Please sign in to comment.