假设我在服务器上有一个文件,缓存 header 指示它应该被缓存。对那个文件的 HEAD 请求的响应也会被缓存吗?
最佳答案
The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource.
缓存对 HEAD
请求本身的响应没有任何意义,因为它不包含任何实体。
关于http - 电话/浏览器是否会缓存 HTTP HEAD 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21019245/