소스 검색

fix:last-modified:304 failure

liujian 4 년 전
부모
커밋
79bab10f84
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Protocols/Http/Response.php

+ 1 - 1
Protocols/Http/Response.php

@@ -375,7 +375,7 @@ class Response
 
 
         if (!isset($headers['Last-Modified'])) {
         if (!isset($headers['Last-Modified'])) {
             if ($mtime = \filemtime($file)) {
             if ($mtime = \filemtime($file)) {
-                $head .= 'Last-Modified: '.\date('D, d M Y H:i:s', $mtime) . ' ' . \date_default_timezone_get() ."\r\n";
+                $head .= 'Last-Modified: '. \gmdate('D, d M Y H:i:s', $mtime) . ' GMT' . "\r\n";
             }
             }
         }
         }