这个模块主要干什么的; 以及怎么工作的 求大神解析
etag(entity, [options])
Generate a strong ETag for the given entity. This should be the complete body of the entity. Strings, Buffers, and fs.Stats are accepted. By default, a strong ETag is generated except for fs.Stats, which will generate a weak ETag (this can be overwritten by options.weak).
res.setHeader('ETag', etag(body))
回复 (5)
I
去搜一下alsotang的一篇缓存的文章
S
@i5ting @htoooth 非常感谢,
S
J
RFC 7232
参与回复
登录后即可参与回复。登录