|
@@ -54,7 +54,7 @@ class ResponseHeaderBag extends HeaderBag
|
|
parent::set($key, $values, $replace);
|
|
parent::set($key, $values, $replace);
|
|
|
|
|
|
// ensure the cache-control header has sensible defaults
|
|
// ensure the cache-control header has sensible defaults
|
|
- if ('cache-control' === strtr(strtolower($key), '_', '-')) {
|
|
|
|
|
|
+ if (in_array(strtr(strtolower($key), '_', '-'), array('cache-control', 'etag', 'last-modified', 'expires'))) {
|
|
$computed = $this->computeCacheControlValue();
|
|
$computed = $this->computeCacheControlValue();
|
|
$this->headers['cache-control'] = array($computed);
|
|
$this->headers['cache-control'] = array($computed);
|
|
$this->computedCacheControl = $this->parseCacheControl($computed);
|
|
$this->computedCacheControl = $this->parseCacheControl($computed);
|