Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / resources / prefetch-purpose.php
blobce080df9a2a72f615c7a2327b2d9431203157e13
1 <?php
2 echo "Purpose: " . $_SERVER["HTTP_PURPOSE"];
3 ?>
5 <script>
6 testRunner.notifyDone();
7 </script>
9 <p>This test verifies that prefetches are sent with the HTTP request
10 header <b>Purpose: prefetch</b>. To do this, the root page has a
11 prefetch link targetting this subresource which contains a PHP script
12 (resources/prefetch-purpose.php). The PHP prints the value of the
13 Purpose header into the document. Later, the root page sets
14 window.location to target this script, which should have "Purpose:
15 prefetch" in its output if it's served from cache.