http HEAD vs GET performance

后端 未结 8 806
无人共我
无人共我 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条回答
  •  死守一世寂寞
    2020-11-30 18:35

    HEAD requests are just like GET requests, except the body of the response is empty. This kind of request can be used when all you want is metadata about a file but don't need to transport all of the file's data.

提交回复
热议问题