FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

How to use CachingHttpClient ? #464

Open barhom opened 2 years ago

barhom commented 2 years ago

How can I make Goutte use CachingHttpClient so that GET requests are cached?

stof commented 2 years ago

Goutte 4 is just an alias for the HttpBrowser of symfony/browser-kit (for migration purposes). That class takes an HttpClientInterface as its first (optional) constructor argument.