lh 3 недель назад
Родитель
Сommit
1b5335e4f6
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      app/Http/Controllers/Account/AccountController.php

+ 6 - 4
app/Http/Controllers/Account/AccountController.php

@@ -30,9 +30,10 @@ class AccountController extends BaseController
         // 入口页面禁止缓存,保证每次更新后普通刷新即可加载最新版本
         // 入口页面禁止缓存,保证每次更新后普通刷新即可加载最新版本
         return response()
         return response()
             ->view('index')
             ->view('index')
-            ->header('Cache-Control', 'no-cache, must-revalidate')
+            ->header('Cache-Control', 'no-store, no-cache, must-revalidate')
             ->header('Pragma', 'no-cache')
             ->header('Pragma', 'no-cache')
-            ->header('Expires', '0');
+            ->header('Expires', '0')
+            ->header('X-Accel-Expires', '0');
     }
     }
 
 
     /**
     /**
@@ -46,9 +47,10 @@ class AccountController extends BaseController
         // 入口页面禁止缓存,保证每次更新后普通刷新即可加载最新版本
         // 入口页面禁止缓存,保证每次更新后普通刷新即可加载最新版本
         return response()
         return response()
             ->view('animeIndex')
             ->view('animeIndex')
-            ->header('Cache-Control', 'no-cache, must-revalidate')
+            ->header('Cache-Control', 'no-store, no-cache, must-revalidate')
             ->header('Pragma', 'no-cache')
             ->header('Pragma', 'no-cache')
-            ->header('Expires', '0');
+            ->header('Expires', '0')
+            ->header('X-Accel-Expires', '0');
     }
     }
 
 
     /**
     /**