$modified_time = $_SERVER[‘HTTP_IF_MODIFIED_SINCE‘]; if (strtotime($modified_time) + 3600 > time()) { header("HTTP/1.1 304"); exit(1); } header(‘Last-Modified:‘.gmdate("D, d M Y H:i:s")."GMT"); echo time();
时间: 2024-11-07 06:26:41
$modified_time = $_SERVER[‘HTTP_IF_MODIFIED_SINCE‘]; if (strtotime($modified_time) + 3600 > time()) { header("HTTP/1.1 304"); exit(1); } header(‘Last-Modified:‘.gmdate("D, d M Y H:i:s")."GMT"); echo time();