@@ -161,7 +161,7 @@ To enable support add the following to ``your_varnish.vcl``:
161161 call fos_ban_deliver;
162162 }
163163
164- This subroutine also sets the ``Url `` and ``Host `` headers on the cache
164+ This subroutine also sets the ``X- Url `` and ``X- Host `` headers on the cache
165165object. These headers are used by the Varnish `ban lurker `_ that crawls the
166166content to eventually throw out banned data even when it’s not requested by any
167167client. Read more on `handling BAN requests `_ in the Varnish documentation (for
@@ -175,10 +175,10 @@ Tagging
175175Feature: :ref: `cache tagging <tags >`
176176
177177If you have included ``fos_ban.vcl ``, tagging will be automatically enabled
178- using an ``Cache-Tags `` header.
178+ using an ``X- Cache-Tags `` header.
179179
180180If you need to use a different tag for the headers than the default
181- ``Cache-Tags `` used in ``fos_ban.vcl ``, you will have to write your own VCL
181+ ``X- Cache-Tags `` used in ``fos_ban.vcl ``, you will have to write your own VCL
182182code for tag invalidation and change the tagging header
183183:ref: `configured in the cache invalidator <varnish_custom_tags_header >`. Your custom
184184VCL will look like this:
@@ -262,6 +262,13 @@ To enable support add the following to ``your_varnish.vcl``:
262262Your backend application needs to respond to the ``application/vnd.fos.user-context-hash ``
263263request with :ref: `a proper user hash <return context hash >`.
264264
265+ .. note ::
266+
267+ We do not use ``X-Original-Url `` here, as the header will be sent to the
268+ backend and the header has semantical meaning for some applications, which
269+ would lead to problems. For example, the Microsoft IIS rewriting module
270+ uses it, and consequently Symfony also looks into it to support IIS.
271+
265272.. tip ::
266273
267274 The provided VCL assumes that you want the context hash to be cached, so we
@@ -345,9 +352,9 @@ The custom header is removed before sending the response to the client.
345352Debugging
346353~~~~~~~~~
347354
348- Configure your Varnish to set a custom header (``Cache ``) that shows whether a
355+ Configure your Varnish to set a custom header (``X- Cache ``) that shows whether a
349356cache hit or miss occurred. This header will only be set if your application
350- sends an ``Cache-Debug `` header:
357+ sends an ``X- Cache-Debug `` header:
351358
352359Subroutines are provided in ``fos_debug.vcl ``.
353360
0 commit comments