blob: ce0b53527180f5869bb07217f3026a757929e9c7 [file] [log] [blame]
Test that disabling disk cache by setting the cache model works.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Default (cache enabled)
--------Testing loads from disk cache--------
response headers: {"Cache-control":"max-age=100"}
response source: Disk cache
--------Testing loads through memory cache (XHR behavior)--------
response headers: {"Cache-control":"max-age=100"}
response source: Memory cache
--------Testing loads through memory cache (subresource behavior)--------
response headers: {"Cache-control":"max-age=100"}
response source: Memory cache
Disabling cache
--------Testing loads from disk cache--------
response headers: {"Cache-control":"max-age=100"}
response source: Network
--------Testing loads through memory cache (XHR behavior)--------
response headers: {"Cache-control":"max-age=100"}
response source: Memory cache
--------Testing loads through memory cache (subresource behavior)--------
response headers: {"Cache-control":"max-age=100"}
response source: Memory cache
Re-enabling cache
--------Testing loads from disk cache--------
response headers: {"Cache-control":"max-age=100"}
response source: Disk cache
--------Testing loads through memory cache (XHR behavior)--------
response headers: {"Cache-control":"max-age=100"}
response source: Memory cache
--------Testing loads through memory cache (subresource behavior)--------
response headers: {"Cache-control":"max-age=100"}
response source: Memory cache
PASS successfullyParsed is true
TEST COMPLETE