瀏覽代碼

Change Cache-Control for test

Visman 5 年之前
父節點
當前提交
69d254db3a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Models/Page.php

+ 2 - 2
app/Models/Page.php

@@ -70,8 +70,8 @@ abstract class Page extends Model
 
         $now = \gmdate('D, d M Y H:i:s') . ' GMT';
 
-        $this->header('Cache-Control', 'no-cache, no-store, must-revalidate')
-//            ->header('Cache-Control', 'private, no-cache')
+        $this //->header('Cache-Control', 'no-cache, no-store, must-revalidate')
+            ->header('Cache-Control', 'private, no-cache')
             ->header('Content-type', 'text/html; charset=utf-8')
             ->header('Date', $now)
             ->header('Last-Modified', $now)