Link prefetch not useful for top-level navigation
[WebKit-https.git] / LayoutTests / http / tests / cache / resources / prefetched-main-resource.php
1 <?php
2 header('Cache-Control: max-age=3600');
3 ?>
4 <!DOCTYPE html>
5 <html>
6 <body>
7 <script>
8
9 if (window.testRunner)
10    testRunner.notifyDone();
11
12 </script>
13 <?php
14 if ($_SERVER["HTTP_PURPOSE"] == "prefetch") {
15     print('PASS');
16 } else {
17     print('FAIL');
18 }
19 ?>
20 </body>
21 </html>