1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-06 16:16:39 +02:00

more test

This commit is contained in:
Mikael Roos
2016-08-08 10:39:11 +02:00
parent b1d0cb1506
commit 72c04632b8
13 changed files with 120 additions and 23 deletions

View File

@@ -92,6 +92,10 @@ class CFastTrackCache
$this->filename = md5($queryAsString);
if (CIMAGE_DEBUG) {
$this->container["query-string"] = $queryAsString;
}
return $this->filename;
}
@@ -215,6 +219,9 @@ class CFastTrackCache
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])
&& strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]) == $item["last-modified"]) {
header("HTTP/1.0 304 Not Modified");
if (CIMAGE_DEBUG) {
trace(__CLASS__ . " 304");
}
exit;
}
@@ -222,6 +229,9 @@ class CFastTrackCache
header($value);
}
if (CIMAGE_DEBUG) {
trace(__CLASS__ . " 200");
}
readfile($item["source"]);
exit;
}