http HEAD vs GET performance

后端 未结 8 815
无人共我
无人共我 2020-11-30 17:57

I am setting-up a REST web service that just need to answer YES or NO, as fast as possible.

Designing a HEAD service seems the best way to do it but I would like to

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 18:54

    Your performance will hardly change by using a HEAD request instead of a GET request.

    Furthermore when you want it to be REST-ful and you want to GET data you should use a GET request instead of a HEAD request.

提交回复
热议问题