mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-06 16:16:39 +02:00
more test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user