From f0efc608b735d13b3385aa806158d3a7d6d74ac9 Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 18 Jul 2024 00:19:06 +0800 Subject: [PATCH] change small image cache time to 1 hour --- themes/beauty/controller/SiteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/beauty/controller/SiteController.php b/themes/beauty/controller/SiteController.php index 5b4a2a8..988ba86 100644 --- a/themes/beauty/controller/SiteController.php +++ b/themes/beauty/controller/SiteController.php @@ -284,7 +284,7 @@ Class SiteController extends Controller { $img_data = base64_decode($base64_img); header("Content-Type: {$imgType}"); - header('Cache-Control: max-age=86400'); + header('Cache-Control: max-age=3600'); //缓存 1 小时 header("Etag: " . md5($img_data)); echo $img_data; exit;