Remove IE edge case handling

This commit is contained in:
Daniel Hensby 2018-06-13 15:27:20 +01:00
parent 17ad985925
commit 1b425570cf
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -756,17 +756,6 @@ class HTTPCacheControlMiddleware implements HTTPMiddleware, Resettable
$this->privateCache();
}
// IE6-IE8 have problems saving files when https and no-cache/no-store are used
// (http://support.microsoft.com/kb/323308)
// Note: this is also fixable by ticking "Do not save encrypted pages to disk" in advanced options.
if ($request->getScheme() === 'https' &&
preg_match('/.+MSIE (7|8).+/', $request->getHeader('User-Agent')) &&
strstr($response->getHeader('Content-Disposition'), 'attachment;') == true &&
($this->hasDirective('no-cache') || $this->hasDirective('no-store'))
) {
$this->privateCache(true);
}
// Errors disable cache (unless some errors are cached intentionally by usercode)
if ($response->isError()) {
// Even if publicCache(true) is specified, errors will be uncacheable