# HG changeset patch # User Kim Alvefur # Date 1356074834 -3600 # Node ID a77c6eba461e9abeea4bc149bbc17f2c23322cad # Parent bf34f1ee08eee6a40902566606324a47f828130f mod_http_files: Only match on modification date when if-none-match is not present diff -r bf34f1ee08ee -r a77c6eba461e plugins/mod_http_files.lua --- 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