Skip to content

Commit 0d059ff

Browse files
ifdatticwouterj
authored andcommitted
Update http_cache.rst
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets |
1 parent b4ee5fb commit 0d059ff

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

book/http_cache.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ If one content corresponds to one URL, the ``PURGE`` model works well.
856856
You send a request to the cache proxy with the HTTP method ``PURGE`` (using
857857
the word "PURGE" is a convention, technically this can be any string) instead
858858
of ``GET`` and make the cache proxy detect this and remove the data from the
859-
cache instead of going to Symfony to get a response.
859+
cache instead of going to the application to get a response.
860860

861861
Here is how you can configure the Symfony reverse proxy to support the
862862
``PURGE`` HTTP method::
@@ -877,7 +877,10 @@ Here is how you can configure the Symfony reverse proxy to support the
877877
}
878878

879879
if ('127.0.0.1' !== $request->getClientIp()) {
880-
return new Response('Invalid HTTP method', Response::HTTP_BAD_REQUEST);
880+
return new Response(
881+
'Invalid HTTP method',
882+
Response::HTTP_BAD_REQUEST
883+
);
881884
}
882885

883886
$response = new Response();
@@ -987,8 +990,10 @@ First, to use ESI, be sure to enable it in your application configuration:
987990
<container xmlns="http://symfony.com/schema/dic/symfony"
988991
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
989992
xmlns:framework="http://symfony.com/schema/dic/symfony"
990-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
991-
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
993+
xsi:schemaLocation="http://symfony.com/schema/dic/services
994+
http://symfony.com/schema/dic/services/services-1.0.xsd
995+
http://symfony.com/schema/dic/symfony
996+
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
992997
993998
<framework:config>
994999
<!-- ... -->
@@ -1115,8 +1120,10 @@ that must be enabled in your configuration:
11151120
<container xmlns="http://symfony.com/schema/dic/services"
11161121
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11171122
xmlns:doctrine="http://symfony.com/schema/dic/framework"
1118-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1119-
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
1123+
xsi:schemaLocation="http://symfony.com/schema/dic/services
1124+
http://symfony.com/schema/dic/services/services-1.0.xsd
1125+
http://symfony.com/schema/dic/symfony
1126+
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
11201127
11211128
<!-- ... -->
11221129
<framework:config>

0 commit comments

Comments
 (0)