5 Replies Latest reply on Sep 12, 2008 4:13 PM by soso xuc

    Files not cached

    soso xuc Newbie

      Hi all

      i am using Eclipse 3.4 and Oracle(BEA) Weblogic 10.3 and richfaces 3.2.1

      cache problem with file :
      4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript (size 53kb)

      when i request page (with non-ajax request i.e. requesting ehole page)
      the file is downloaded every time while other files are cached as usual

      How to force the browser to cache the above file (which is quite big to be downloaded on every request)?

      Thanks in advance



        • 1. Re: Files not cached
          Nick Belaevski Master

          Hello,

          Do you see anything alike on server console/in logs:

          WARNING: Error in parsing request If-Modified-Since header
          java.lang.IllegalArgumentException: Bad date header: 'Tue, 09 Sep 2008 01:47:21 GMT'
           at weblogic.servlet.internal.ServletRequestImpl.getDateHeader(ServletRequestImpl.java:983)
           at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:83)
           at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:167)
           at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:500)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(Unknown Source)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
          
          ?

          • 2. Re: Files not cached
            Nick Belaevski Master

            Hello,

            I've reproduced the problem: https://jira.jboss.org/jira/browse/RF-4427

            • 3. Re: Files not cached
              soso xuc Newbie

              Thanks Nick

              • 4. Re: Files not cached
                Nick Belaevski Master

                Please try the next 3.3.0 nightly build, the problem should be fixed there

                • 5. Re: Files not cached
                  soso xuc Newbie

                  Thanks Nick