go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.25k stars 345 forks source link

How to Set or replace response headers #1062

Closed Qedr1 closed 4 months ago

Qedr1 commented 4 months ago

Hi First of all, this is amazing product ang great job! Thx!

How to Set or Replace response headers. For example, I need to set cache headers for disable page caching Can you help me pls?

Rod Version: v0.116.0

ysmood commented 4 months ago

Hijack?

Qedr1 commented 4 months ago

OMG. I find it. Sorry https://github.com/go-rod/rod/blob/2d3e61f379eaddca6cf029c4060c34271064e641/hijack_test.go#L78