blob: 9aec673e270cb5bc5a36ed58ee40bd7205ad65ad [file] [log] [blame]
Tests that media resources loaded via XHR is not cached.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
running 6 tests
--------Testing loads from disk cache--------
response headers: {"Cache-control":"max-age=0","Content-Type":"text/plain"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"text/plain"}
response source: Disk cache
response headers: {"Cache-control":"max-age=0","Content-Type":"video/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"video/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=0","Content-Type":"audio/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"audio/mp4"}
response source: Network
--------Testing loads through memory cache (XHR behavior)--------
response headers: {"Cache-control":"max-age=0","Content-Type":"text/plain"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"text/plain"}
response source: Memory cache
response headers: {"Cache-control":"max-age=0","Content-Type":"video/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"video/mp4"}
response source: Memory cache
response headers: {"Cache-control":"max-age=0","Content-Type":"audio/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"audio/mp4"}
response source: Memory cache
--------Testing loads through memory cache (subresource behavior)--------
response headers: {"Cache-control":"max-age=0","Content-Type":"text/plain"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"text/plain"}
response source: Memory cache
response headers: {"Cache-control":"max-age=0","Content-Type":"video/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"video/mp4"}
response source: Memory cache
response headers: {"Cache-control":"max-age=0","Content-Type":"audio/mp4"}
response source: Network
response headers: {"Cache-control":"max-age=100","Content-Type":"audio/mp4"}
response source: Memory cache
PASS successfullyParsed is true
TEST COMPLETE