Skip to content

Commit 0ee3ae7

Browse files
committed
minor #4481 [Cookbook][Cache] add syntax highlighting for Varnish code blocks (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Cache] add syntax highlighting for Varnish code blocks | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Commits ------- 9a52d00 add syntax highlighting for Varnish code blocks
2 parents 0577559 + 9a52d00 commit 0ee3ae7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/cache/varnish.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ First, configure Varnish so that it advertises its ESI support by adding a
3838
``Surrogate-Capability`` header to requests forwarded to the backend
3939
application:
4040

41-
.. code-block:: text
41+
.. code-block:: varnish4
4242
4343
sub vcl_recv {
4444
// Add a Surrogate-Capability header to announce ESI support.
@@ -137,7 +137,7 @@ proxy before it has expired, it adds complexity to your caching setup.
137137
Varnish can be configured to accept a special HTTP ``PURGE`` method
138138
that will invalidate the cache for a given resource:
139139

140-
.. code-block:: text
140+
.. code-block:: varnish4
141141
142142
/*
143143
Connect to the backend server
@@ -186,7 +186,7 @@ that will invalidate the cache for a given resource:
186186
You must protect the ``PURGE`` HTTP method somehow to avoid random people
187187
purging your cached data. You can do this by setting up an access list:
188188

189-
.. code-block:: text
189+
.. code-block:: varnish4
190190
191191
/*
192192
Connect to the backend server
@@ -252,7 +252,7 @@ is 80 and not 8080.
252252
If this header weren't set properly, Symfony may append ``8080`` when generating
253253
absolute URLs:
254254

255-
.. code-block:: text
255+
.. code-block:: varnish4
256256
257257
sub vcl_recv {
258258
if (req.http.X-Forwarded-Proto == "https" ) {

0 commit comments

Comments
 (0)