diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-09 16:05:13 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-09 16:05:13 (GMT) |
commit | 7190c7be34fe0dbcfbb10b232b40977c758d251a (patch) | |
tree | 6c94506f0b47c5e634128e6dc34204bd3ea9da07 /src/network/access | |
parent | f6f2d03b2d74b236d33a5ca32a49f138bf521c13 (diff) | |
parent | d9c84c26dc212b2f170dfb48346df7c439e6f759 (diff) | |
download | Qt-7190c7be34fe0dbcfbb10b232b40977c758d251a.zip Qt-7190c7be34fe0dbcfbb10b232b40977c758d251a.tar.gz Qt-7190c7be34fe0dbcfbb10b232b40977c758d251a.tar.bz2 |
Merge branch 4.7 into qt-master-from-4.7
Diffstat (limited to 'src/network/access')
-rw-r--r-- | src/network/access/qnetworkaccesshttpbackend.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/network/access/qnetworkaccesshttpbackend.cpp b/src/network/access/qnetworkaccesshttpbackend.cpp index a031cd0..cc1248b 100644 --- a/src/network/access/qnetworkaccesshttpbackend.cpp +++ b/src/network/access/qnetworkaccesshttpbackend.cpp @@ -1027,14 +1027,11 @@ QNetworkCacheMetaData QNetworkAccessHttpBackend::fetchCacheMetaData(const QNetwo if (hop_by_hop) continue; - // for 4.6.0, we were planning to not store the date header in the - // cached resource; through that we planned to reduce the number - // of writes to disk when using a QNetworkDiskCache (i.e. don't - // write to disk when only the date changes). - // However, without the date we cannot calculate the age of the page - // anymore. - //if (header == "date") - //continue; + // we are currently not using the date header to determine the expiration time of a page, + // but only the "Expires", "max-age" and "s-maxage" headers, see + // QNetworkAccessHttpBackend::validateCache() and below ("metaData.setExpirationDate()"). + if (header == "date") + continue; // Don't store Warning 1xx headers if (header == "warning") { |