Weak ETAGs in Rails?

前端 未结 4 1643
你的背包
你的背包 2020-12-16 03:20

What is the best way to tell rails to use weak instead of strong ETAGs when using methods fresh_when and stale??

The reason I ask is that

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 03:50

    It looks like Rack::ETag will use weak-etags in the future:

    • https://github.com/rack/rack/issues/681 https://github.com/rack/rack/commit/12528d4567d8e6c1c7e9422fee6cd8b43c4389bf

提交回复
热议问题