CDP can block some type resource,like image,audio,video,css.
It can save traffic and boot performace.
In go-rod example code
err = router.Add("*", "", func(ctx *rod.Hijack) {
reqType := ctx.Request.Type()
if reqType == proto.NetworkResourceTypeImage ||
reqType == proto.NetworkResourceTypeMedia ||
reqType == proto.NetworkResourceTypeFont ||
reqType == proto.NetworkResourceTypeStylesheet {
ctx.Response.Fail(proto.NetworkErrorReasonBlockedByClient)
return
}
ctx.ContinueRequest(&proto.FetchContinueRequest{})
})