Skip to content

Commit 3f84bae

Browse files
committed
Added note
1 parent bc2b316 commit 3f84bae

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,17 @@ What we like about the LastModifiedDeterminators is that they encourage
6969
to separate the concerns nicely and encapsulate the tasks into small
7070
units that are easy to understand, reusable and unit test.
7171

72+
*Note:* `@ReplaceWithNotModifiedResponse` does not alter or add
73+
`Cache-Control` header settings. So, by default your response will
74+
remain `private` and end up in browser caches only. If you want it to be
75+
kept in surrogate caches (like Varnish or the Symfony Http Cache), you
76+
can add `@Cache(smaxage="0")`. This will make the response `public`, but
77+
also requires a revalidation on every request as the response is
78+
*always* considered stale. [Learn more about Symonfy's HTTP caching].
7279

80+
[Learn more about Symonfy's HTTP caching]: http://symfony.com/doc/current/book/http_cache.html
81+
82+
7383

7484
## Installation
7585

0 commit comments

Comments
 (0)