From 433222d6c005afc9fba2873e25e1c885ce1a88f4 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 13 Jun 2013 13:57:30 +0800 Subject: [PATCH] Revert "MDL-39832 Files: Fixed ETag format according with RFC2616." This reverts commit 20043f4392694ca04aabfebb156af661a0bcfdf4. --- lib/filelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filelib.php b/lib/filelib.php index 8b4ca84e5c3..a8e236dee04 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -2004,7 +2004,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;