For example, we could move the last-modified time for our file a minute further into the future.
例如,我们可以不断地更新文件的最后修改时间。
If the content is stale, the browser sends a request to the server to compare the Last-Modified time stamp.
如果内容失效,浏览器将发送一个请求到服务器以比较Last - Modified时间戳。
If the response file has the same Last-Modified time stamp, the server returns code 304 to the browser to tell it that the response file is the same.
如果响应文件拥有相同的Last - Modified时间戳,则服务器将返回代码304到浏览器,告知浏览器响应文件相同。
应用推荐