-
1. Re: richfaces scripts reloaded on each new page
mglowacki Nov 5, 2010 5:31 AM (in response to mglowacki)Sorry, my scripts are reloaded even with F5, but this is probably because a4j:loadStyle adds some attributes to src of each style, like node1=dfas43dsf...
One more tip, no tomcat/apache is adding pragma: no-cache etc himself. Result html is clean of this.
-
2. Re: richfaces scripts reloaded on each new page
nbelaevski Nov 5, 2010 3:52 PM (in response to mglowacki)Hi Michal,
Please check the following issue: https://jira.jboss.org/browse/RF-7452 . Also does the problem affect HTTPS or HTTP?
-
3. Re: richfaces scripts reloaded on each new page
mglowacki Nov 8, 2010 10:23 AM (in response to nbelaevski)hi Nick,
it affects both HTTP and HTTPS. My page is redirected to secure connection anyway, but I made tests on HTTP as well. Now I tried with Live HTTP headers FF plugin and this is the header for one of a4j elements.
HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1, JSF/1.2Cache-Control: max-age=86400Last-Modified: Mon, 08 Nov 2010 12:26:24 GMTExpires: Tue, 09 Nov 2010 14:56:47 GMTContent-Type: text/css;charset=ISO-8859-1Transfer-Encoding: chunkedContent-Encoding: gzipVary: Accept-EncodingDate: Mon, 08 Nov 2010 14:56:47 GMTHTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1, JSF/1.2
Cache-Control: max-age=86400
Last-Modified: Mon, 08 Nov 2010 12:26:24 GMT
Expires: Tue, 09 Nov 2010 14:56:47 GMT
Content-Type: text/css;charset=ISO-8859-1
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Mon, 08 Nov 2010 14:56:47 GMT
The link you gave me, looks like I could match some of the infos to my case. Like the content of authent. resources is not cached. This is part of my web.xml
<security-constraint>
<display-name>Restrict raw XHTML Documents</display-name>
<web-resource-collection>
<web-resource-name>XHTML</web-resource-name>
<url-pattern>*.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
I tried adding:<web-resource-collection>
<web-resource-name>unrestricted</web-resource-name>
<url-pattern>/MyPage/a4j/*</url-pattern>
<url-pattern>/MyPage/scripts/*</url-pattern>
</web-resource-collection>
to see if it could be the issue, but unfortunately the javascript stopped working then :/