Just for clarity for future searches I think that was intended to be
reply_header_access/reply_header_replace combo. It all starts sounding the same 
after a while.

________________________________________
From: squid-users <squid-users-boun...@lists.squid-cache.org> on behalf of 
senor <frio_cerv...@hotmail.com>
Sent: Monday, September 23, 2019 10:08 AM
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] Error page headers

Thank you Alex. I suspected I was missing something. In this case I didn't 
realize the error page would still need to flow through 
http_reply_access/reply_header_replace. I think that's what I need.

I didn't want to touch the code unless I could do something as complete as what 
you described. It's an enticing project for when extra time comes my way.

Thanks!

________________________________________
From: squid-users <squid-users-boun...@lists.squid-cache.org> on behalf of Alex 
Rousskov <rouss...@measurement-factory.com>
Sent: Monday, September 23, 2019 6:03 AM
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] Error page headers

On 9/23/19 12:49 AM, senor wrote:

> I have custom error pages with content needing the Content-Type
> header to reflect what it is (like JSON). I don't see any current
> options providing that option for error page handling.

I would start with http_reply_access/reply_header_replace combo, denying
the Content-Type response header in applicable Squid-generated error
responses (and only them) and then providing a replacement.


> Adaptation could work but seems like overkill.

There is not post-cache RESPMOD vectoring point support in Squid (and
most other proxies) -- adaptation is not applied to error pages.

You can also modify Squid sources, of course. This feature can probably
be quickly hacked into ErrorState::BuildHttpReply(). If you want
official admission, then a proper implementation would probably require
adding support for loading arbitrary response headers from the error
page template itself.

Alex.
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to