OLD | NEW |
(Empty) | |
| 1 <?php |
| 2 header("Link: < http://wut.com.test/>; rel=dns-prefetch"); |
| 3 ?> |
| 4 <!DOCTYPE html> |
| 5 <script> |
| 6 if (window.testRunner) { |
| 7 testRunner.dumpAsText(); |
| 8 testRunner.dumpChildFramesAsText(); |
| 9 testRunner.waitUntilDone(); |
| 10 } |
| 11 if (window.internals) { |
| 12 internals.settings.setLogDnsPrefetchAndPreconnect(true); |
| 13 internals.settings.setLinkHeaderEnabled(true); |
| 14 } |
| 15 if (window.sessionStorage && !sessionStorage.reloaded) { |
| 16 sessionStorage.reloaded = true; |
| 17 location.reload(); |
| 18 } |
| 19 </script> |
| 20 This test check if a Link header triggered a dns prefetch |
| 21 <script> |
| 22 if (window.testRunner) |
| 23 testRunner.notifyDone(); |
| 24 </script> |
OLD | NEW |