File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
3939application:
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.
137137Varnish can be configured to accept a special HTTP ``PURGE `` method
138138that 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.
252252If this header weren't set properly, Symfony may append ``8080 `` when generating
253253absolute URLs:
254254
255- .. code-block :: text
255+ .. code-block :: varnish4
256256
257257 sub vcl_recv {
258258 if (req.http.X-Forwarded-Proto == "https" ) {
You can’t perform that action at this time.
0 commit comments