mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Revert "MDL-39832 Files: Fixed ETag format according with RFC2616."
This reverts commit 9ab37ae3e07f54bc08644f8462d94bed68ff6c9b.
This commit is contained in:
parent
7e815a6eac
commit
db74804ff1
@ -2021,7 +2021,7 @@ function readfile_accel($file, $mimetype, $accelerate) {
|
||||
header('Last-Modified: '. gmdate('D, d M Y H:i:s', $lastmodified) .' GMT');
|
||||
|
||||
if (is_object($file)) {
|
||||
header('Etag: "' . $file->get_contenthash() . '"');
|
||||
header('ETag: ' . $file->get_contenthash());
|
||||
if (isset($_SERVER['HTTP_IF_NONE_MATCH']) and $_SERVER['HTTP_IF_NONE_MATCH'] === $file->get_contenthash()) {
|
||||
header('HTTP/1.1 304 Not Modified');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user