@@ -29,8 +29,10 @@ Create the cache invalidator by passing a proxy client as
2929Invalidating Paths and URLs
3030---------------------------
3131
32- Make sure to :doc: `configure your proxy <proxy-configuration >` for purging
33- first.
32+ .. note ::
33+
34+ Make sure to :doc: `configure your proxy <proxy-configuration >` for purging
35+ first.
3436
3537Invalidate a path:
3638
@@ -51,8 +53,10 @@ Invalidate a URL:
5153 Refreshing Paths and URLs
5254-------------------------
5355
54- Make sure to :doc: `configure your proxy <proxy-configuration >` for refreshing
55- first.
56+ .. note ::
57+
58+ Make sure to :doc: `configure your proxy <proxy-configuration >` for refreshing
59+ first.
5660
5761.. code-block :: php
5862
@@ -68,7 +72,10 @@ Refresh a URL:
6872 Invalidating With a Regular Expression
6973--------------------------------------
7074
71- Make sure to :doc: `configure your proxy <proxy-configuration >` for banning first.
75+ .. note ::
76+
77+ Make sure to :doc: `configure your proxy <proxy-configuration >` for banning
78+ first.
7279
7380URL, Content Type and Hostname
7481~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -84,7 +91,7 @@ caching proxy:
8491
8592 $cacheInvalidator->invalidateRegex('.*css$')->flush();
8693
87- To invalidate all .png files for host example.com:
94+ To invalidate all .png files on host example.com:
8895
8996.. code-block :: php
9097
@@ -96,9 +103,12 @@ To invalidate all .png files for host example.com:
96103 Any Header
97104~~~~~~~~~~
98105
99- You can also invalidate the cache based on any headers. If you use non-default
100- headers, make sure to [configure your proxy accordingly](proxy-configuration.md)
101- to have them taken into account.
106+ You can also invalidate the cache based on any headers.
107+
108+ .. note ::
109+
110+ If you use non-default headers, make sure to :doc: `configure your proxy <proxy-configuration >`
111+ to have them taken into account.
102112
103113Cache client implementations should fill up the headers to at least have the
104114default headers always present to simplify the cache configuration rules.
@@ -111,14 +121,17 @@ To invalidate on a custom header ``X-My-Header``, you would do:
111121
112122 .. _tags :
113123
114- Tags
115- ----
124+ Invalidating Tags
125+ -----------------
126+
127+ .. note ::
116128
117- Make sure to :doc: `configure your proxy <proxy-configuration >` for tagging first.
129+ Make sure to :doc: `configure your proxy <proxy-configuration >` for tagging first.
118130
119- You will have to make sure your web application adds the correct tags on all
120- responses by setting the ``X-Cache-Tags `` header. The FOSHttpCacheBundle _ does
121- does this for you when you’re using Symfony.
131+ With tags you can group related representations so it becomes easier to
132+ invalidate them. You will have to make sure your web application adds the
133+ correct tags on all responses by setting the ``X-Cache-Tags `` header. The
134+ FOSHttpCacheBundle _ does does this for you when you’re using Symfony.
122135
123136Assume you sent four responses:
124137
0 commit comments