projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
symfony
/
http-kernel
/
HttpCache
/
ResponseCacheStrategy.php
diff --git
a/vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategy.php
b/vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategy.php
index 39a99e6966c22ab46ae7997e193eb1a2308c31b9..672cc893feb6d3dbc3adc9d6b19b415c0420cc1d 100644
(file)
--- a/
vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategy.php
+++ b/
vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategy.php
@@
-39,7
+39,7
@@
class ResponseCacheStrategy implements ResponseCacheStrategyInterface
*/
public function add(Response $response)
{
*/
public function add(Response $response)
{
- if (
$response->isValidat
eable()) {
+ if (
!$response->isFresh() || !$response->isCach
eable()) {
$this->cacheable = false;
} else {
$maxAge = $response->getMaxAge();
$this->cacheable = false;
} else {
$maxAge = $response->getMaxAge();
@@
-70,6
+70,9
@@
class ResponseCacheStrategy implements ResponseCacheStrategyInterface
if ($response->isValidateable()) {
$response->setEtag(null);
$response->setLastModified(null);
if ($response->isValidateable()) {
$response->setEtag(null);
$response->setLastModified(null);
+ }
+
+ if (!$response->isFresh() || !$response->isCacheable()) {
$this->cacheable = false;
}
$this->cacheable = false;
}