logo
首页技术栈工具库讨论
wai-middleware-etag

wai-middleware-etag

WAI middleware that attaches ETags to responses for static files if they exist. Caveats: If caching is turned on, the middleware caches calculated checksums aggressively in a synchronized hashmap; checksums are calculated only once, so changes on the file-system are not reflected until the server is restarted. This middleware only calculates ETag checksums for file smaller than 1MB, otherwise it attaches a last-modified tag to the response.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
标签
根据用户添加的标签生成
暂无标签