Changeset

5256:a77c6eba461e

mod_http_files: Only match on modification date when if-none-match is not present
author Kim Alvefur <zash@zash.se>
date Fri, 21 Dec 2012 08:27:14 +0100
parents 5255:bf34f1ee08ee
children 5257:b125892e187c
files plugins/mod_http_files.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_http_files.lua	Fri Dec 21 08:25:09 2012 +0100
+++ b/plugins/mod_http_files.lua	Fri Dec 21 08:27:14 2012 +0100
@@ -68,7 +68,7 @@
 	local if_none_match = request_headers.if_none_match
 	local if_modified_since = request_headers.if_modified_since;
 	if etag == if_none_match
-	or last_modified == if_modified_since then
+	or (not if_none_match and last_modified == if_modified_since) then
 		return 304;
 	end