Hidden features of HTTP

前端 未结 13 1216
醉话见心
醉话见心 2021-01-29 17:38

What hidden features of HTTP do you think are worth mentioning?

By hidden features I mean features that already are part of the standard but widely rath

13条回答
  •  甜味超标
    2021-01-29 17:50

    204 No Content

    I thought 204 was just if you have no content to display, but the spec looks like there is additional behavior that the user agent "not change its document view."

    According to HOWTO: Configure Apache to Return a HTTP 204 (No Content) for AJAX

    FWIW, Google actually does something similar. Each time a user clicks on a link in their search results, Google pings itself to record the click; the response code from the ping is an HTTP 204.

    Also, 204 No Content proposes this is a good technique for "web bugs" or "beacons" if you want to save on every last byte of network traffic you can.

提交回复
热议问题