JSF 资源未缓存在 Liferay portlet 中
JSF resources not cached in Liferay portlet
我在 Liferay 中编写了一个 primefaces portlet。当查看使用 Chrome 的开发人员工具加载的资源时,我看到未缓存 jsf 资源(js,css)。
Cache-Control:private, no-cache, no-store, must-revalidate
Content-Encoding:gzip
Content-Length:71495
Content-Type:application/javascript;charset=UTF-8
Date:Fri, 31 Jul 2015 02:55:19 GMT
ETag:W/"340248-1432143286996"
Expires:Thu, 29 Oct 2015 02:55:19 GMT
Last-Modified:Wed, 20 May 2015 17:34:46 GMT
Liferay-Portal:Liferay Portal Community Edition 6.1.2 CE (Paton / Build 6102 / August 2, 2013)
portlet.http-status-code:200
Pragma:no-cache
但是 Liferay 的资源运行得很好。
我使用:jsf 2.1、primefaces 5.2、liferay 6.1.2、liferayfaces 3.1.2-ga3。
有没有办法缓存jsf资源?
感谢您的帮助!
我在你的 portal-ext.properties 文件中有 browser.cache.signed.in.disabled=true,所以我登录时没有缓存我的 jsf 资源。
我在 Liferay 中编写了一个 primefaces portlet。当查看使用 Chrome 的开发人员工具加载的资源时,我看到未缓存 jsf 资源(js,css)。
Cache-Control:private, no-cache, no-store, must-revalidate
Content-Encoding:gzip
Content-Length:71495
Content-Type:application/javascript;charset=UTF-8
Date:Fri, 31 Jul 2015 02:55:19 GMT
ETag:W/"340248-1432143286996"
Expires:Thu, 29 Oct 2015 02:55:19 GMT
Last-Modified:Wed, 20 May 2015 17:34:46 GMT
Liferay-Portal:Liferay Portal Community Edition 6.1.2 CE (Paton / Build 6102 / August 2, 2013)
portlet.http-status-code:200
Pragma:no-cache
但是 Liferay 的资源运行得很好。
我使用:jsf 2.1、primefaces 5.2、liferay 6.1.2、liferayfaces 3.1.2-ga3。
有没有办法缓存jsf资源?
感谢您的帮助!
我在你的 portal-ext.properties 文件中有 browser.cache.signed.in.disabled=true,所以我登录时没有缓存我的 jsf 资源。