if-modified-since vs if-none-match

2019-01-12 15:31发布

What could be the difference between if-modified-since and if-none-match? I have a feeling that if-none-match is used for files whereas if-modified-since is used for pages?

7条回答
迷人小祖宗
2楼-- · 2019-01-12 16:31

Timestamp value used in Last-Modified/If-Modified-Since has limited precision - one second and that is simply not enough for fast changing content like, for instance, Web-chat application where more than one message could be posted at any given second. ETag/If-None-Match can help to solve that problem.

查看更多
登录 后发表回答