diff --git a/library/think/Response.php b/library/think/Response.php index d5ab5827..4b96b32d 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -115,7 +115,7 @@ class Response if (200 == $this->code) { $cache = Request::instance()->getCache(); - if ($cache) { + if ($cache && Request::instance()->isGet()) { Cache::set($cache[0], $data, $cache[1]); Cache::set($cache[0] . '_header', $this->header['Content-Type']); }