我打开了“标题过滤器”并添加设置
<filter-mapping>
<filter-name>Header Filter - No Cache</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter>
<filter-name>Header Filter - No Cache</filter-name>
<filter-class>com.liferay.portal.servlet.filters.header.HeaderFilter</filter-class>
<init-param>
<param-name>url-regex-ignore-pattern</param-name>
<param-value>(css|gif|svg|ico|jpg|js|png)+(\?.*)?</param-value>
</init-param>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>no-cache</param-value>
</init-param>
<init-param>
<param-name>Expires</param-name>
<param-value>-1</param-value>
</init-param>
<init-param>
<param-name>Pragma</param-name>
<param-value>no-cache</param-value>
</init-param>
</filter>
<filter>
但是我的标题页看起来像
Cache-Control: max-age=315360000, public
Expires: -1
Pragma: no-cache
缓存控件不等于没有缓存
如何配置过滤器,使其正确放置标头