Forum Discussion
Sam_Novak
Sep 19, 2016Altostratus
I should've done more research before putting in this ask.
I found the CACHE_RESPONSE event and I can manipulate it just like the HTTP_RESPONSE event
when RULE_INIT {
set static::InfoHeaders { "Server" "X-Powered-By" "X-SharePointHealthScore" "X-AspNet-Version" "X-AspNetMvc-Version" }}
when HTTP_RESPONSE {
Remove headers that provide information about the backend
foreach header $static::InfoHeaders {
HTTP::header remove $header
}
when CACHE_RESPONSE {
Remove headers that provide information about the backend
foreach header $static::InfoHeaders {
CACHE::header remove $header
}}