@@ -90,11 +90,10 @@ to cache a response for 10 seconds, use the ``Response::setTtl()`` method::
9090
9191.. tip ::
9292
93- If, like me, you are running your framework from the command line by
94- simulating requests (``Request::create('/is_leap_year/2012') ``), you can
95- easily debug Response instances by dumping their string representation
96- (``echo $response; ``) as it displays all headers as well as the response
97- content.
93+ If you are running your framework from the command line by simulating
94+ requests (``Request::create('/is_leap_year/2012') ``), you can debug
95+ Response instances by dumping their string representation (``echo $response; ``)
96+ as it displays all headers as well as the response content.
9897
9998To validate that it works correctly, add a random number to the response
10099content and check that the number only changes every 10 seconds::
@@ -114,8 +113,8 @@ comfortable with these concepts, read the `HTTP caching`_ chapter of the
114113Symfony documentation.
115114
116115The Response class contains many other methods that let you configure the
117- HTTP cache very easily . One of the most powerful is ``setCache() `` as it
118- abstracts the most frequently used caching strategies into one simple array::
116+ HTTP cache. One of the most powerful is ``setCache() `` as it abstracts the
117+ most frequently used caching strategies into one array::
119118
120119 $date = date_create_from_format('Y-m-d H:i:s', '2005-10-15 10:00:00');
121120
@@ -135,8 +134,8 @@ abstracts the most frequently used caching strategies into one simple array::
135134 $response->setSharedMaxAge(10);
136135
137136When using the validation model, the ``isNotModified() `` method allows you to
138- easily cut on the response time by short-circuiting the response generation as
139- early as possible::
137+ cut on the response time by short-circuiting the response generation as early
138+ as possible::
140139
141140 $response->setETag('whatever_you_compute_as_an_etag');
142141
0 commit comments