From e8290be25356e8bccc239427dda8164e9795a996 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 27 Sep 2016 18:31:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=BC=93=E5=AD=98=E4=BB=85?= =?UTF-8?q?=E5=AF=B9GET=E8=AF=B7=E6=B1=82=E6=9C=89=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); }