Skip to content

Commit 303f343

Browse files
committed
final tweaks
1 parent 6d58fec commit 303f343

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

cache/esi.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Working with Edge Side Includes
66
===============================
77

88
Gateway caches are a great way to make your website perform better. But they
9-
have one limitation: they can only cache whole pages. If you can't cache
10-
whole pages or if parts of a page has "more" dynamic parts, you are out of
9+
have one limitation: they can only cache whole pages. If your pages contain
10+
dynamic sections, such as the user name or a shopping cart, you are out of
1111
luck. Fortunately, Symfony provides a solution for these cases, based on a
1212
technology called `ESI`_, or Edge Side Includes. Akamai wrote this specification
1313
almost 10 years ago and it allows specific parts of a page to have a different
@@ -33,7 +33,7 @@ as this is the only useful one outside of Akamai context:
3333

3434
.. note::
3535

36-
Notice from the example that each ESI tag has a fully-qualified URL.
36+
Notice from the example that each ESI tag requires a fully-qualified URL.
3737
An ESI tag represents a page fragment that can be fetched via the given
3838
URL.
3939

cache/expiration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
HTTP Cache Expiration
55
=====================
66

7-
The `expiration model`_ is the more efficient and straightforward of the two
7+
The `expiration model`_ is the most efficient and straightforward of the two
88
caching models and should be used whenever possible. When a response is cached
9-
with an expiration, the cache will store the response and return it directly
10-
without hitting the application until it expires.
9+
with an expiration, the cache returns it directly without hitting the application
10+
until the cached response expires.
1111

1212
The expiration model can be accomplished using one of two, nearly identical,
1313
HTTP headers: ``Expires`` or ``Cache-Control``.

cache/validation.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ To see a simple implementation, generate the ETag as the md5 of the content::
7878
}
7979

8080
The :method:`Symfony\\Component\\HttpFoundation\\Response::isNotModified`
81-
method compares the ``If-None-Match`` sent with the ``Request`` with the
82-
``ETag`` header set on the ``Response``. If the two match, the method
83-
automatically sets the ``Response`` status code to 304.
81+
method compares the ``If-None-Match`` header with the ``ETag`` response header.
82+
If the two match, the method automatically sets the ``Response`` status code
83+
to 304.
8484

8585
.. note::
8686

@@ -156,9 +156,9 @@ header value::
156156
}
157157

158158
The :method:`Symfony\\Component\\HttpFoundation\\Response::isNotModified`
159-
method compares the ``If-Modified-Since`` header sent by the request with
160-
the ``Last-Modified`` header set on the response. If they are equivalent,
161-
the ``Response`` will be set to a 304 status code.
159+
method compares the ``If-Modified-Since`` header with the ``Last-Modified``
160+
response header. If they are equivalent, the ``Response`` will be set to a
161+
304 status code.
162162

163163
.. note::
164164

http_cache.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ Symfony Reverse Proxy
7171
~~~~~~~~~~~~~~~~~~~~~
7272

7373
Symfony comes with a reverse proxy (i.e. gateway cache) written in PHP.
74-
:ref:`It's not as robust as other reverse proxy caches like Varnish <http-cache-symfony-versus-varnish>`,
74+
:ref:`It's not a fully-featured reverse proxy cache like Varnish <http-cache-symfony-versus-varnish>`,
7575
but is a great way to start.
7676

7777
.. tip::
7878

7979
For details on setting up Varnish, see :doc:`/cache/varnish`.
8080

81-
Enabling the is easy: each application comes with a caching kernel (``AppCache``)
81+
Enabling the proxy is easy: each application comes with a caching kernel (``AppCache``)
8282
that wraps the default one (``AppKernel``). The caching Kernel *is* the reverse
8383
proxy.
8484

0 commit comments

Comments
 (0)