首页 > Web开发 > 详细

[HTTP] HTTP Verb

时间:2016-07-02 22:42:30      阅读:163      评论:0      收藏:0      [点我收藏+]

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.

技术分享

 

OPTIONS:

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

技术分享

 

技术分享

[HTTP] HTTP Verb

原文:http://www.cnblogs.com/Answer1215/p/5636139.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!