Why serve 1x1 pixel GIF (web bugs) data at all?

前端 未结 8 1276
名媛妹妹
名媛妹妹 2020-12-12 09:44

Many analytic and tracking tools are requesting 1x1 GIF image (web bug, invisible for the user) for cross-domain event storing/processing.

Why to serve this GIF i

8条回答
  •  醉梦人生
    2020-12-12 09:46

    Some browsers may display an error icon if the resource could not load. It makes debugging/monitoring the service also a little bit more complicated, you have to make sure that your monitoring tools treat the error as a good result.

    OTOH you don't gain anything. The error message returned by the server/framework is typically bigger then the 1x1 image. This means you increase your network traffic for basically nothing.

提交回复
热议问题