Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3998e2f

Browse files
gonzalovilasecaweaverryan
authored andcommitted
Update varnish.rst
1 parent dfcfb3a commit 3998e2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/cache/varnish.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Symfony2 adds automatically:
5757
// For Varnish < 3.0
5858
// esi;
5959
}
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 */
6162
if (beresp.http.Pragma ~ "no-cache" ||
6263
beresp.http.Cache-Control ~ "no-cache" ||
6364
beresp.http.Cache-Control ~ "private") {

0 commit comments

Comments
 (0)