From e19d7ebdde19520082aa64d930658aa0e01ea316 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 21 Dec 2012 08:27:14 +0100 Subject: mod_http_files: Only match on modification date when if-none-match is not present --- plugins/mod_http_files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index dea209c8..c0d9b2ec 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -68,7 +68,7 @@ function serve_file(event, path) 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 -- cgit v1.2.3