Skip to content

Commit 6efe6b3

Browse files
committed
Merge pull request #174 from FriendsOfSymfony/do-not-expose-tags
do not expose cache tags to the internet
2 parents d9979f9 + c7c34f9 commit 6efe6b3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

doc/varnish-configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ Add the following to your Varnish configuration to enable :ref:`cache tagging <t
9999

100100
.. literalinclude:: ../tests/Functional/Fixtures/varnish-4/ban.vcl
101101
:language: varnish4
102-
:emphasize-lines: 8-13
102+
:emphasize-lines: 8-13,39
103103
:linenos:
104104

105105
.. literalinclude:: ../tests/Functional/Fixtures/varnish-3/ban.vcl
106106
:language: varnish3
107-
:emphasize-lines: 8-13
107+
:emphasize-lines: 8-13,39
108108
:linenos:
109109

110110
.. _varnish user context:

tests/Functional/Fixtures/varnish-3/ban.vcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ sub vcl_deliver {
3636
# Remove ban-lurker friendly custom headers when delivering to client
3737
unset resp.http.X-Url;
3838
unset resp.http.X-Host;
39+
unset resp.http.X-Cache-Tags;
3940
}
4041
}

tests/Functional/Fixtures/varnish-4/ban.vcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ sub vcl_deliver {
3535
# Remove ban-lurker friendly custom headers when delivering to client
3636
unset resp.http.X-Url;
3737
unset resp.http.X-Host;
38+
unset resp.http.X-Cache-Tags;
3839
}
3940
}

0 commit comments

Comments
 (0)