Link prefetch not useful for top-level navigation
[WebKit-https.git] / LayoutTests / http / tests / cache / link-prefetch-main-resource.html
1 <html>
2 <script>
3 if (window.testRunner) {
4     testRunner.waitUntilDone();
5     testRunner.dumpAsText();
6 }
7
8 function loadAfterPrefetch()
9 {
10      window.location.assign('http://localhost:8000/cache/resources/prefetched-main-resource.php');
11 }
12 </script>
13 <body>
14 <link rel="prefetch" href="http://localhost:8000/cache/resources/prefetched-main-resource.php" onload="loadAfterPrefetch();">
15 </body>
16 </html>