6 Replies Latest reply on Jun 25, 2009 7:49 PM by nbelaevski

    Reason RichFaces doesn't set client-side Expiry headers?

    kennardconsulting

      Hi guys,

      First, many thanks for such an awesome component library!

      My question: is there any reason RichFaces doesn't set the client-side HTTP Expiry header (and associated No-Cache headers) on its resources?

      Using Firefox's FireBug, you can see almost all resources report '304 Not Modified'...

      /a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/events.js.ui
      /a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/utils.js.ui
      /a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/jquery/jquery.js.ui
      ...many more


      ...but you still need to do a server trip to obtain that 304. There are around 10 such requests per page.

      I have had good success in my own code dramatically improving performance by setting client side Expiry headers of, say, 1 hour for all .js, .css and image files.

      Is there a reason RichFaces doesn't too? Or is there somewhere I can turn it on?

      Regards,

      Richard.