[HTTP] HTTP Verb

HEAD:

HEAD / HTTP/1.1
nc.exmaple.com

HEAD is a interesting method, it allow you to get a header of file without get the whole content.

It allows you to check whether there is enought empty space to store the response or the cache is still up to date. This way broswer can avoid redownloading the file since the most recently cache is still valid.

 

You might not see HEAD in request becasue in GET request also contains HEAD, we don't want to do 2 ROUND TRIP, important thing to remember, we need to reduce as much as possilbe to speed up our website.

[HTTP] HTTP Verb_第1张图片

 

OPTIONS:

Get number of methods supports in you url. Not every browsers support this.

[HTTP] HTTP Verb_第2张图片

 

[HTTP] HTTP Verb_第3张图片

你可能感兴趣的:([HTTP] HTTP Verb)