8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f958391 commit 8848549Copy full SHA for 8848549
cookbook/cache/varnish.rst
@@ -57,7 +57,8 @@ Symfony2 adds automatically:
57
// For Varnish < 3.0
58
// esi;
59
}
60
- /* Do not cache if no-cache is found in headers */
+ /* By default Varnish ignores Cache-Control: nocache (https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html#cache-control),
61
+ so in order avoid caching it has to be done explicitly */
62
if (beresp.http.Pragma ~ "no-cache" ||
63
beresp.http.Cache-Control ~ "no-cache" ||
64
beresp.http.Cache-Control ~ "private") {
0 commit comments