| 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 |
| |