正在显示
1 个修改的文件
包含
0 行增加
和
5 行删除
| @@ -61,11 +61,6 @@ class FileController | @@ -61,11 +61,6 @@ class FileController | ||
| 61 | */ | 61 | */ |
| 62 | public function index($hash = '') | 62 | public function index($hash = '') |
| 63 | { | 63 | { |
| 64 | - // 检查是否有修改日期或ETag头部 | ||
| 65 | - if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) { | ||
| 66 | - header("HTTP/1.1 304 Not Modified"); | ||
| 67 | - exit; | ||
| 68 | - } | ||
| 69 | $fileModel = new File(); | 64 | $fileModel = new File(); |
| 70 | $info = $fileModel->read(['hash' => $hash]); | 65 | $info = $fileModel->read(['hash' => $hash]); |
| 71 | if ($info === false) { | 66 | if ($info === false) { |
-
请 注册 或 登录 后发表评论