diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/uncacheable-resource.php')
-rw-r--r-- | LayoutTests/http/tests/appcache/resources/uncacheable-resource.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/uncacheable-resource.php b/LayoutTests/http/tests/appcache/resources/uncacheable-resource.php new file mode 100644 index 0000000..ddfe07d --- /dev/null +++ b/LayoutTests/http/tests/appcache/resources/uncacheable-resource.php @@ -0,0 +1,13 @@ +<?php +# This resource won't be cached by network layer, but will be cached by appcache. +header("Last-Modified: Thu, 01 Dec 2003 16:00:00 GMT"); +header("Expires: Thu, 01 Dec 2003 16:00:00 GMT"); +header("Cache-Control: no-cache, no-store"); +header("Pragma: no-cache"); +header("Content-Type: text/plain"); + +if ($_SERVER['HTTP_IF_MODIFIED_SINCE'] || $_SERVER['HTTP_IF_NONE_MATCH']) + header("HTTP/1.1 304 Not Modified"); +else + print("Hello, world!\n"); +?> |