# HG changeset patch # User Kim Alvefur # Date 1587840900 -7200 # Node ID 8f3b87eaec498bde9898e1781d15077a5c16b4ec # Parent a026e4f45f3fac1b80660f3e4a0895116f5f2dd7 mod_http_files: Avoid using inode in etag, fix #1498 diff -r a026e4f45f3f -r 8f3b87eaec49 plugins/mod_http_files.lua --- a/plugins/mod_http_files.lua Thu Apr 23 13:44:47 2020 +0100 +++ b/plugins/mod_http_files.lua Sat Apr 25 20:55:00 2020 +0200 @@ -112,7 +112,7 @@ local last_modified = os_date('!%a, %d %b %Y %H:%M:%S GMT', attr.modification); response_headers.last_modified = last_modified; - local etag = ('"%02x-%x-%x-%x"'):format(attr.dev or 0, attr.ino or 0, attr.size or 0, attr.modification or 0); + local etag = ('"%x-%x-%x"'):format(attr.change or 0, attr.size or 0, attr.modification or 0); response_headers.etag = etag; local if_none_match = request_headers.if_none_match