* framework: enable cache if the mode is running.

This commit is contained in:
liugang
2024-05-23 14:22:15 +08:00
committed by caoyanyi
parent 256f8508b2
commit a5ffb58c5e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1064,7 +1064,7 @@ class baseControl
*/
public function setResponseHeader()
{
if($this->config->cache->client->enable && $this->app->useClientCache)
if($this->app->isServing() && $this->config->cache->client->enable && $this->app->useClientCache)
{
helper::setStatus(304);
helper::end();