HTTP auto tests: do not load resources from cache that must be revalidtd
authorPeter Hartmann <peter.hartmann@nokia.com>
Wed, 4 May 2011 11:50:40 +0000 (13:50 +0200)
committerPeter Hartmann <peter.hartmann@nokia.com>
Wed, 4 May 2011 12:35:21 +0000 (14:35 +0200)
commita4e3b2bd5ed8c80b7735c21aa406236340553dbe
tree714e20a20f35f49d4fb5ea8b95787baacfa6c1c9
parent33ce5392e8e6ed2aa729e2268c1e58cdb1d32fad
HTTP auto tests: do not load resources from cache that must be revalidtd

The header field "Cache-Control: must-revalidate" is a strict
requirement for loading the resource from the server, and not reading it
from the cache without revalidating first. With this patch, PreferCache
will load such from the network instead of loading them from the cache,
and AlwaysCache will throw a ContentNotFound error.

Reviewed-by: Markus Goetz
Task-number: QTBUG-18983
tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp
tests/auto/qnetworkreply/tst_qnetworkreply.cpp