| <body onload="setTimeout(test, 100);"> |
| This test does the following:<br> |
| 1. Load a page, trigger an XHR.<br> |
| 3. Dump the http readers for the reload of the XHR.<br><br> |
| The XHR is trigger after onload has fired. There should not be an HTTP_CACHE_CONTROL header forcing reload, so an http cache |
| could load the resource without contacting the server.<br> |
| The test passes if there is no HTTP_CACHE_CONTROL header displayed below.<br> |
| testRunner.waitUntilDone(); |
| document.getElementById("console").appendChild(document.createTextNode(message)); |
| xhr = new XMLHttpRequest(); |
| if (localStorage.reloaded) |
| xhr.open("GET", "resources/print-cache-control-header.cgi", true); |
| localStorage.reloaded = true; |