2 Replies Latest reply on Oct 28, 2009 7:15 PM by Kishore Chintoju

    Optimal value for org.ajax4jsf.DEFAULT_EXPIRE

    Kishore Chintoju Newbie

      All the RichFaces resources served from the web-app come with default Expires Header of 24 hours(for browser caching). Which is controlled by context param "org.ajax4jsf.DEFAULT_EXPIRE" with default value for "86400".

      In production I'm planning increase the cache time to a month or even an year. As I assume these js files contain none of developer code and the url of these resources will change when we upgrade to a newer version.

      Am I thinking wrong here (just wanted to confirm, is there anything in these JS files which will change in each build) and is it advisable to do this ?

      Example resource:
      http://localhost/our-web-app/a4j/g/3_3_2.SR1/org/ajax4jsf/framework.pack.js

      Ref:
      http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/SettingsForDifferentEnvironments.html