问题
I wanted to know how to check the server response of "If-Modified-Since" header sent by my browser. I am not sure how do I achieve it. Any help would be a great deal to me, Thanks.
回答1:
Check the HTTP response code (e.g., using curl
). If the resource is not modified you get a 304
response, else, in the non-error case, a 200
.
来源:https://stackoverflow.com/questions/6661924/if-modified-since-header