From 6f17ba0f232c4c58e4195df46315ab86596b9d58 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Wed, 11 Dec 2024 23:08:53 +0330 Subject: [PATCH] added cache to design page --- app/Http/Controllers/Admin/AreaController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/AreaController.php b/app/Http/Controllers/Admin/AreaController.php index 02ac360..da867ef 100644 --- a/app/Http/Controllers/Admin/AreaController.php +++ b/app/Http/Controllers/Admin/AreaController.php @@ -40,7 +40,8 @@ class AreaController extends Controller } } - return view('admin.areas.area-design', compact('area', 'valids')); + return response()->view('admin.areas.area-design', compact('area', 'valids')) + ->header('Cache-Control','public, max-age=31536000, immutable'); } public function designModel(Area $area, $model, $id)