We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6156bd6 commit 30eb4c3Copy full SHA for 30eb4c3
src/FileEntry.php
@@ -72,7 +72,11 @@ public function response($filename)
72
->setPublic();
73
}
74
75
- return response(null, 304)->setPublic();
+ return response(null, 304)
76
+ ->setEtag($etag)
77
+ ->setLastModified(new \DateTime($time))
78
+ ->setExpires(new \DateTime($expires))
79
+ ->setPublic();
80
} catch (FileNotFoundException $e) {
81
abort(404);
82
} catch (\Illuminate\Contracts\Filesystem\FileNotFoundException $e) {
0 commit comments