Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e815a6
)
Revert "MDL-39832 Files: Fixed ETag format according with RFC2616."
author
Dan Poltawski
<dan@moodle.com>
Thu, 13 Jun 2013 05:56:09 +0000
(13:56 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Thu, 13 Jun 2013 05:56:09 +0000
(13:56 +0800)
This reverts commit
9ab37ae3e07f54bc08644f8462d94bed68ff6c9b
.
lib/filelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/filelib.php
b/lib/filelib.php
index
d73604a
..
30f7edf
100644
(file)
--- a/
lib/filelib.php
+++ b/
lib/filelib.php
@@
-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('E
tag: "' . $file->get_contenthash() . '"'
);
+ header('E
Tag: ' . $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;