1 Reply Latest reply on May 8, 2009 9:20 AM by nbelaevski

    Is it necessary to use cache control with RichFaces?

    fkj

      I'd like to know if is it necessary to use something like http://turbomanage.wordpress.com/2006/08/08/disable-browser-caching-in-jsf/ when working with RichFaces.

      Debugging the AJAX request with firebug, it seems that org.ajax4jsf.Filter already set some headers at the response to prevent cache.

      I'd like to know this because according to the link above browser caching may lead to security issues.

      Thanks,
      Felipe

        • 1. Re: Is it necessary to use cache control with RichFaces?
          nbelaevski

          Hello Felipe,

          As I see in Firebug, common request doesn't have any cache control headers:

          X-Powered-By: JSF/1.2
          Content-Type: text/html; charset=utf-8
          Transfer-Encoding: chunked
          Server: Jetty(6.1.5)

          It is not a must, but you can use the described technique if you are worried about security concerns mentioned in the article.