Re: [squid-users] Looking to trigger reply_on_error with custom header

2016-11-07 Thread Alex Rousskov
On 11/07/2016 08:48 AM, Daniel Dormont wrote: > the request will return a 200 OK, and the response body > will be a valid image, but it'll have this extra header: > > x-staticmap-api-warning:Failed to fetch image url > http://download.example.com/mapicons/1 > > This should be a transient error,

[squid-users] Looking to trigger reply_on_error with custom header

2016-11-07 Thread Daniel Dormont
Hi, My team uses Squid to proxy and cache certain external content in our web platform. Now, we are looking to use it to cache images that come from the Google Static Maps API. Sometimes, however, these images fail to load properly, but unfortunately they do not respond with any of the usual HTTP