Skip to content

Commit

Permalink
minor #4481 [Cookbook][Cache] add syntax highlighting for Varnish cod…
Browse files Browse the repository at this point in the history
…e 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
  • Loading branch information
wouterj committed Nov 18, 2014
2 parents 0577559 + 9a52d00 commit 0ee3ae7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbook/cache/varnish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ First, configure Varnish so that it advertises its ESI support by adding a
``Surrogate-Capability`` header to requests forwarded to the backend
application:

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

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

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

.. code-block:: text
.. code-block:: varnish4
sub vcl_recv {
if (req.http.X-Forwarded-Proto == "https" ) {
Expand Down

0 comments on commit 0ee3ae7

Please sign in to comment.