blob: dd811518b3d9d05688b7158581ac020ca8c3c7a1 [file] [log] [blame]
Test that responses with HTTP status code 404 are cacheable
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
running 3 tests
--------Testing loads from disk cache--------
response headers: {"Status":"404","Cache-control":"max-age=0"}
response source: Network
response headers: {"Status":"404","Cache-control":"max-age=100"}
response source: Disk cache
response headers: {"Status":"404","Last-Modified":"now(-1000)"}
response source: Disk cache
--------Testing loads through memory cache (XHR behavior)--------
response headers: {"Status":"404","Cache-control":"max-age=0"}
response source: Network
response headers: {"Status":"404","Cache-control":"max-age=100"}
response source: Memory cache
response headers: {"Status":"404","Last-Modified":"now(-1000)"}
response source: Memory cache
--------Testing loads through memory cache (subresource behavior)--------
response headers: {"Status":"404","Cache-control":"max-age=0"}
response source: Network
response headers: {"Status":"404","Cache-control":"max-age=100"}
response source: Memory cache
response headers: {"Status":"404","Last-Modified":"now(-1000)"}
response source: Memory cache
PASS successfullyParsed is true
TEST COMPLETE