2 env response cache positive with env message
4 <?php include "skipif.inc"; ?>
9 $e = new http\Env\Request;
10 $e->setHeader("If-Modified-Since", "Fri, 13 Feb 2009 23:31:32 GMT");
11 $r = new http\Env\Response;
12 $r->setEnvRequest($e);
13 $r->setBody(new http\Message\Body(fopen(__FILE__,"rb")));
15 $r->setLastModified(1234567891);
16 $r->isCachedByEtag("If-None-Match") and die("Huh? etag? really?\n");
17 $r->isCachedByLastModified("If-Modified-Since") or die("yep, I should be cached");
21 HTTP/1.1 304 Not Modified
23 Last-Modified: Fri, 13 Feb 2009 23:31:31 GMT