Reputation: 51
I write a primefaces portlet in Liferay. When view resources loaded with Chrome's Developer tools, I see jsf resources (js, css) not cached.
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
But Liferay's resources are work perfectly.
I use: jsf 2.1, primefaces 5.2, liferay 6.1.2, liferayfaces 3.1.2-ga3.
Is there a way to cache jsf resources?
Thanks for any help!
Upvotes: 1
Views: 434
Reputation: 51
I have browser.cache.signed.in.disabled=true in your portal-ext.properties file, so my jsf resources not cached when i logged in.
Upvotes: 1