Browse Source

change small image cache time to 1 hour

master
filesite 4 months ago
parent
commit
f0efc608b7
  1. 2
      themes/beauty/controller/SiteController.php

2
themes/beauty/controller/SiteController.php

@ -284,7 +284,7 @@ Class SiteController extends Controller {
$img_data = base64_decode($base64_img); $img_data = base64_decode($base64_img);
header("Content-Type: {$imgType}"); header("Content-Type: {$imgType}");
header('Cache-Control: max-age=86400'); header('Cache-Control: max-age=3600'); //缓存 1 小时
header("Etag: " . md5($img_data)); header("Etag: " . md5($img_data));
echo $img_data; echo $img_data;
exit; exit;

Loading…
Cancel
Save