Home | History | Annotate | Download | only in resources
      1 <?php
      2 # This resource won't be cached by network layer, but will be cached by appcache.
      3 header("Last-Modified: Thu, 01 Dec 2003 16:00:00 GMT");
      4 header("Expires: Thu, 01 Dec 2003 16:00:00 GMT");
      5 header("Cache-Control: no-cache, no-store");
      6 header("Pragma: no-cache");
      7 header("Content-Type: text/plain");
      8 
      9 if ($_SERVER['HTTP_IF_MODIFIED_SINCE'] || $_SERVER['HTTP_IF_NONE_MATCH'])
     10     header("HTTP/1.1 304 Not Modified");
     11 else
     12     print("Hello, world!\n");
     13 ?>
     14