Forums de discussion
everything.jsp barebone.jsp not cached
Srini k, modifié il y a 10 années.
everything.jsp barebone.jsp not cached
Junior Member Publications: 33 Date d'inscription: 04/12/11 Publications récentes
Looks like these static resources are not cached , request hits the server for every page refresh.
HeaderFilter and CacheFilters are enabled and configured in liferay-web.xml
Liferay 6.1
+ 3.038 2 0.205 1714 171017 GET 200 javascript <domon>/html/js/everything.jsp?browserId=ie&themeId=<themeId>&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=en_US&b=6100&t=1370042302000
am i missing any thing here.
HeaderFilter and CacheFilters are enabled and configured in liferay-web.xml
Liferay 6.1
+ 3.038 2 0.205 1714 171017 GET 200 javascript <domon>/html/js/everything.jsp?browserId=ie&themeId=<themeId>&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=en_US&b=6100&t=1370042302000
am i missing any thing here.
Srini k, modifié il y a 10 années.
RE: everything.jsp barebone.jsp not cached
Junior Member Publications: 33 Date d'inscription: 04/12/11 Publications récentes
http://issues.liferay.com/browse/LPS-2781
liferay-web.xml , 6.1 , no-cache="set-Cookie" , is it needed here.
if i remove this , it's caching the content.
<filter>
<filter-name>Header Filter - JSP</filter-name>
<filter-class>com.liferay.portal.servlet.filters.header.HeaderFilter</filter-class>
<init-param>
<param-name>url-regex-pattern</param-name>
<param-value>.+/(barebone|css|everything|main)\.jsp</param-value>
</init-param>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>max-age=315360000, no-cache="Set-Cookie", public</param-value>
</init-param>
<init-param>
<param-name>Expires</param-name>
<param-value>315360000</param-value>
</init-param>
<init-param>
<param-name>Vary</param-name>
<param-value>Accept-Encoding</param-value>
</init-param>
</filter>
liferay-web.xml , 6.1 , no-cache="set-Cookie" , is it needed here.
if i remove this , it's caching the content.
<filter>
<filter-name>Header Filter - JSP</filter-name>
<filter-class>com.liferay.portal.servlet.filters.header.HeaderFilter</filter-class>
<init-param>
<param-name>url-regex-pattern</param-name>
<param-value>.+/(barebone|css|everything|main)\.jsp</param-value>
</init-param>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>max-age=315360000, no-cache="Set-Cookie", public</param-value>
</init-param>
<init-param>
<param-name>Expires</param-name>
<param-value>315360000</param-value>
</init-param>
<init-param>
<param-name>Vary</param-name>
<param-value>Accept-Encoding</param-value>
</init-param>
</filter>
Christophe Cariou, modifié il y a 10 années.
RE: everything.jsp barebone.jsp not cached
Junior Member Publications: 57 Date d'inscription: 01/10/07 Publications récentes
I have the same trouble under Liferay 6.1 with IE (8 at least).
Everything and Barebone are not cached by IE. No trouble for Chrome/Firefox.
I tested it on my own project, but it's the same for other Liferay based sites (liferay.com for example).
So, I first suspected a size limit for IE javascript caching, but it doesn't seem to be the cause.
I searched the and found this post and the Jira Issue LPS-2781.
I removed the no-cache="set-Cookie" terms from the param-value in liferay-web.xml and after a restart, IE take Barebone and Everything in cache. GREAT.
BUT : What is the edge effect of this, mainly in terms of security?
Everything and Barebone are not cached by IE. No trouble for Chrome/Firefox.
I tested it on my own project, but it's the same for other Liferay based sites (liferay.com for example).
So, I first suspected a size limit for IE javascript caching, but it doesn't seem to be the cause.
I searched the and found this post and the Jira Issue LPS-2781.
I removed the no-cache="set-Cookie" terms from the param-value in liferay-web.xml and after a restart, IE take Barebone and Everything in cache. GREAT.
BUT : What is the edge effect of this, mainly in terms of security?
Srini k, modifié il y a 10 années.
RE: everything.jsp barebone.jsp not cached
Junior Member Publications: 33 Date d'inscription: 04/12/11 Publications récentes
no-cache="set-cookie" meant not to cache the cookies only , but IE8 in this case not understanding this header correctly and not caching the everything/barebone reponse.
By removing this , we allow cookies to be cached for this static content request.
By removing this , we allow cookies to be cached for this static content request.
kavitha pazhanee, modifié il y a 10 années.
RE: everything.jsp barebone.jsp not cached
New Member Publications: 8 Date d'inscription: 24/07/13 Publications récentes
Hi,
I am also using liferay 6.1.20 EE Version and facing with this issue. The Solution works perfect in my case too. but little scared on, whether it will lead to any side effects or security issues. Is there any liferay site that speaks about this issue or about this property ? Please throw some light on any reference that says we can go ahead and implement the fix.
I am also using liferay 6.1.20 EE Version and facing with this issue. The Solution works perfect in my case too. but little scared on, whether it will lead to any side effects or security issues. Is there any liferay site that speaks about this issue or about this property ? Please throw some light on any reference that says we can go ahead and implement the fix.
robin thakur, modifié il y a 9 années.
RE: everything.jsp barebone.jsp not cached
Regular Member Publications: 146 Date d'inscription: 09/01/14 Publications récentes
Hi,
I am removing no-cache parameter from below but stil my barebone.jsp is not cached. The location of file is
D:\Liferay\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps\ROOT\WEB-INF
<filter>
<filter-name>Header Filter - JSP</filter-name>
<filter-class>com.liferay.portal.servlet.filters.header.HeaderFilter</filter-class>
<init-param>
<param-name>url-regex-pattern</param-name>
<param-value>.+/(barebone|css|everything|main)\.jsp</param-value>
</init-param>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>max-age=315360000, no-cache="Set-Cookie", public</param-value>
</init-param>
<init-param>
<param-name>Expires</param-name>
<param-value>315360000</param-value>
</init-param>
<init-param>
<param-name>Vary</param-name>
<param-value>Accept-Encoding</param-value>
</init-param>
</filter>
Am I missing something or I have to remove something else.
Thanks
I am removing no-cache parameter from below but stil my barebone.jsp is not cached. The location of file is
D:\Liferay\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps\ROOT\WEB-INF
<filter>
<filter-name>Header Filter - JSP</filter-name>
<filter-class>com.liferay.portal.servlet.filters.header.HeaderFilter</filter-class>
<init-param>
<param-name>url-regex-pattern</param-name>
<param-value>.+/(barebone|css|everything|main)\.jsp</param-value>
</init-param>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>max-age=315360000, no-cache="Set-Cookie", public</param-value>
</init-param>
<init-param>
<param-name>Expires</param-name>
<param-value>315360000</param-value>
</init-param>
<init-param>
<param-name>Vary</param-name>
<param-value>Accept-Encoding</param-value>
</init-param>
</filter>
Am I missing something or I have to remove something else.
Thanks
Traolly Xiong, modifié il y a 8 années.
RE: everything.jsp barebone.jsp not cached
Regular Member Publications: 195 Date d'inscription: 30/12/11 Publications récentes
Hello everyone,
We are currently on Liferay 6.2. Analyzing the the static resource URLs I've noticed these types of URLs:
ex) http://www.webpagetest.org/result/150428_S0_639/1/details/
1) /html/js/barebone.jsp?browserId=other&themeId=QADcom_WAR_QADcomtheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6210&t=1430153676399
2) /documents/3488095/3499705/tower.png/5d793bdb-c1d1-401f-9adc-93283b48d8dd?t=1427825343930
3) /documents/3488095/3499645/logo_symbol_QAD.svg/2e4303ad-dda2-4b46-a6de-da994b386a3f
4) /documents/3488095/3673890/WeMakeCloudERPSoftware.jpg
You notice #1)-#3) end with "t=<number>" except for #4).
Questions I had would be:
a) Is "t" value a # in ms or seconds?
b) Why is the "t" parameter set for some URLs but not some?
c) Where is this "t" parameter set? "liferay-web.xml"?
d) Does it make sense to add the 'max-age" control header if the "t" parameter is in the URL?
e) Anything else about the "t" parameter useful to know?
Much thanks in advance.
We are currently on Liferay 6.2. Analyzing the the static resource URLs I've noticed these types of URLs:
ex) http://www.webpagetest.org/result/150428_S0_639/1/details/
1) /html/js/barebone.jsp?browserId=other&themeId=QADcom_WAR_QADcomtheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6210&t=1430153676399
2) /documents/3488095/3499705/tower.png/5d793bdb-c1d1-401f-9adc-93283b48d8dd?t=1427825343930
3) /documents/3488095/3499645/logo_symbol_QAD.svg/2e4303ad-dda2-4b46-a6de-da994b386a3f
4) /documents/3488095/3673890/WeMakeCloudERPSoftware.jpg
You notice #1)-#3) end with "t=<number>" except for #4).
Questions I had would be:
a) Is "t" value a # in ms or seconds?
b) Why is the "t" parameter set for some URLs but not some?
c) Where is this "t" parameter set? "liferay-web.xml"?
d) Does it make sense to add the 'max-age" control header if the "t" parameter is in the URL?
e) Anything else about the "t" parameter useful to know?
Much thanks in advance.
Manisha Thote, modifié il y a 7 années.
RE: everything.jsp barebone.jsp not cached
New Member Publications: 8 Date d'inscription: 13/02/12 Publications récentes
I am also facing same issues.Any Updates on this.