2 echo "Purpose: " . $_SERVER["HTTP_PURPOSE"];
6 testRunner
.notifyDone();
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.