开发者

Why does Web Server respond "304 Not Modified" when no Etag and no "If-Modified-Since" is in request header

开发者 https://www.devze.com 2023-01-06 23:11 出处:网络
I get back 304 Not Modified from the web server, but in Firebug, the request header doesn\'t have Etag and doesn\'t have If-Modified-Since, and I looked at all the header line and ther开发者_C百科

I get back

304 Not Modified 

from the web server, but in Firebug, the request header doesn't have Etag and doesn't have If-Modified-Since, and I looked at all the header line and ther开发者_C百科e was no datetime info at all, so how does the server know the content is not modified?


The "ETag" header is sent by the server in the response - the client sends an "If-None-Match" back to the server with the ETag value if it already has it cached.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号