【发布时间】:2013-12-14 08:38:28
【问题描述】:
PF 3.5(4.0)、Omnifaces 1.6.3、Mojara 2.1.21
是否可以控制将在 JSF xhtml 页面内发送的 http 标头?我的意思是:
.xhtml:
<html xmlns:http="a cool name space">
<h:head>
<http:headers header="Cache-Control" value="no-cache, no-store, must-revalidate" />
</h:head>
<h:body> .... </h:body>
</html>
【问题讨论】:
-
仅供参考:OmniFaces 1.7 将为此提供
CacheControlFilter。它已经在当前快照中。 Javadoc在这里:wiki.omnifaces.googlecode.com/hg/javadoc/org/omnifaces/filter/… -
感谢您,OmniFaces 有趣且有用的功能。
标签: jsf servlets jsf-2 http-headers omnifaces