diff options
author | Kim Alvefur <zash@zash.se> | 2012-12-21 08:27:14 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-12-21 08:27:14 +0100 |
commit | e19d7ebdde19520082aa64d930658aa0e01ea316 (patch) | |
tree | 916236cbd231c75b0627d5ca86a2b409ef570f99 | |
parent | a9937ee757b77f991fb0a091fb8173252f23580b (diff) | |
download | prosody-e19d7ebdde19520082aa64d930658aa0e01ea316.tar.gz prosody-e19d7ebdde19520082aa64d930658aa0e01ea316.zip |
mod_http_files: Only match on modification date when if-none-match is not present
-rw-r--r-- | plugins/mod_http_files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |