码迷,mamicode.com
首页 > Web开发 > 详细

[HTTP] HTTP Verb

时间:2016-07-02 22:44:28      阅读:1070      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!