Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategy.php @ 16:c2387f117808
Routine composer update
| author | Chris Cannam |
|---|---|
| date | Tue, 10 Jul 2018 15:07:59 +0100 |
| parents | 7a779792577d |
| children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
| 15:e200cb7efeb3 | 16:c2387f117808 |
|---|---|
| 70 if ($response->isValidateable()) { | 70 if ($response->isValidateable()) { |
| 71 $response->setEtag(null); | 71 $response->setEtag(null); |
| 72 $response->setLastModified(null); | 72 $response->setLastModified(null); |
| 73 } | 73 } |
| 74 | 74 |
| 75 if (!$response->isFresh()) { | 75 if (!$response->isFresh() || !$response->isCacheable()) { |
| 76 $this->cacheable = false; | 76 $this->cacheable = false; |
| 77 } | 77 } |
| 78 | 78 |
| 79 if (!$this->cacheable) { | 79 if (!$this->cacheable) { |
| 80 $response->headers->set('Cache-Control', 'no-cache, must-revalidate'); | 80 $response->headers->set('Cache-Control', 'no-cache, must-revalidate'); |
