File tree
Expand file treeCollapse file tree1 file changed
+2
-1
lines changed Expand file treeCollapse file tree1 file changed
+2
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -57,7 +57,8 @@ Symfony2 adds automatically:
|
57 | 57 | // For Varnish < 3.0
|
58 | 58 | // esi;
|
59 | 59 | }
|
60 |
| -/* Do not cache if no-cache is found in headers */ |
| 60 | +/* 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 */ |
61 | 62 | if (beresp.http.Pragma ~ "no-cache" ||
|
62 | 63 | beresp.http.Cache-Control ~ "no-cache" ||
|
63 | 64 | beresp.http.Cache-Control ~ "private") {
|
|
You can’t perform that action at this time.
0 commit comments