if-modified-since vs if-none-match

前端 未结 7 1857
别跟我提以往
别跟我提以往 2020-12-04 05:32

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条回答
  •  情歌与酒
    2020-12-04 06:10

    If-Modified-Since uses a date, while If-None-Match uses an ETag. They can both be used for "pages" (i.e. HTML) and other files.

提交回复
热议问题