Link prefetch not useful for top-level navigation
[WebKit-https.git] / LayoutTests / http / tests / cache / resources / prefetched-main-resource-iframe.php
1 <?php
2 if ($_SERVER["HTTP_PURPOSE"] == "prefetch") {
3     header('Cache-Control: max-age=3600');
4     header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
5
6     echo "<script>";
7     echo "parent.window.postMessage('FAIL', '*');";
8     echo "</script>";
9
10     exit();
11 }
12
13 header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
14
15 echo "<script>";
16 echo "parent.window.postMessage('PASS', '*');";
17 echo "</script>";
18 ?>