Skip to content

Commit

Permalink
Merge branch '2.4' into 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jun 13, 2014
2 parents b7a03f8 + 3f0c9ea commit b879ad7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contributing/documentation/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Attribution-Share Alike 3.0 Unported `License`_.
* *Other Rights* — In no way are any of the following rights affected by the
license:

* Your fair dealing or fair use rights, or other applicable copyright
exceptions and limitations;
* Your fair dealing or fair use rights, or other applicable copyright exceptions
and limitations;

* The author's moral rights;
* The author's moral rights;

* Rights other persons may have either in the work itself or in how
the work is used, such as publicity or privacy rights.
* Rights other persons may have either in the work itself or in how the
work is used, such as publicity or privacy rights.

* *Notice* — For any reuse or distribution, you must make clear to others
the license terms of this work. The best way to do this is with a link
Expand Down
8 changes: 8 additions & 0 deletions cookbook/cache/varnish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ Symfony2 adds automatically:
// For Varnish < 3.0
// esi;
}
/* By default Varnish ignores Cache-Control: nocache
(https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html#cache-control),
so in order avoid caching it has to be done explicitly */
if (beresp.http.Pragma ~ "no-cache" ||
beresp.http.Cache-Control ~ "no-cache" ||
beresp.http.Cache-Control ~ "private") {
return (hit_for_pass);
}
}
.. caution::
Expand Down

0 comments on commit b879ad7

Please sign in to comment.