+ If cache is hit, add a header.

This commit is contained in:
Lufei
2023-06-05 17:01:38 +08:00
parent cae4cc315a
commit 9a9cef0159
+1
View File
@@ -2279,6 +2279,7 @@ class baseRouter
if($cache->has($cacheKey))
{
if(!headers_sent()) header('X-Zt-Hit-Cache: 1');
$content = $cache->get($cacheKey);
}
else