1 Reply Latest reply on Mar 30, 2007 8:48 PM by alexsmirnov

    browser cache in combination with ajax

    mhn

      I have an a4j:commandlink on the page that generates a list of items for the current user. The list is very large and static over a period. Therefore I would like to cache this list in the browser for a specified time via http headers.

      Is this even possible ?
      The ajaxlink should not be excuted if the list is in the browser cache.
      Any ideas or thoughts ?

      Michael

        • 1. Re: browser cache in combination with ajax
          alexsmirnov

          As far as JSF requests, including a4j AJAX, are performed using POST method, it's not possible to prevent requests for a cached data by response headers.
          You need the feature like a remoting call to JSF bean, but with caching data in Browser.
          In a4j framework, we have mediaOutput component, with all nessesary features. However you must write your own JavaScript code to perform the requests and updates.