【发布时间】:2017-05-30 13:42:32
【问题描述】:
我有一个在 Websphere Liberty Core 17.0.0.1 上运行的应用程序。每当它以 4xx 状态代码响应时,Web 容器都会在响应中添加名为 $WSEP 的标头。例如:
$WSEP →
Cache-Control →no-cache, no-store, max-age=0, must-revalidate
Content-Language →en-US
Content-Type →text/html;charset=UTF-8
Date →Tue, 30 May 2017 13:21:21 GMT
Expires →0
Pragma →no-cache
Transfer-Encoding →chunked
我尝试将 Web 容器属性 suppressErrorPageODRHeader 添加到我的 server.xml 中以抑制此标头,但它不起作用。
<webContainer suppressErrorPageODRHeader="true"/>
如何配置我的 Web 容器以禁止显示此标头?
【问题讨论】:
标签: websphere websphere-liberty