ICEfaces
  1. ICEfaces
  2. ICE-560

Add versioning to JavaScript files (was "Old Javascript not replaced in a new release")

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6DR#1, 1.6
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      As reported on the forum browsers are keeping old javascript, causing fatal
      application problems. We need to implement a system where the user never has to
      manually clear their cache.



      Forum Post:

      http://www.icefaces.org/JForum/posts/list/3447.page#16200

      migration problem 1.5.1 to 1.5.2

      Hi

      I made a migration of 1.5.1 for 1.5.2 and run my application. when i click in
      popupCalendar raises this exception

      SEVERE: Servlet.service() for servlet Blocking Servlet threw exception
      java.lang.NullPointerException at
      com.icesoft.faces.application.D2DViewHandler.findComponent(D2DViewHandler.java:771)

      I did not change nothing in my application

      thanks

      Werter

        Activity

        Hide
        Ted Goddard added a comment -

        Do we have a good approach to fixing this?

        • encode version number "153" in filename
        • encode hash signature of icefaces-d2d.js in filename
        • set cache headers (maybe not so good; we want it to be cached, just not cached across versions)
        • encode protocol version in messages for server detection
        Show
        Ted Goddard added a comment - Do we have a good approach to fixing this? encode version number "153" in filename encode hash signature of icefaces-d2d.js in filename set cache headers (maybe not so good; we want it to be cached, just not cached across versions) encode protocol version in messages for server detection
        Hide
        Rob Mayhew added a comment -

        We are going to add the startup time to the path for javascript

        /xml-http/193723181/icefaces-d2d.js

        Show
        Rob Mayhew added a comment - We are going to add the startup time to the path for javascript /xml-http/193723181/icefaces-d2d.js
        Hide
        Rob Mayhew added a comment -

        Implemented in r13250

        Show
        Rob Mayhew added a comment - Implemented in r13250

          People

          • Assignee:
            Unassigned
            Reporter:
            Rob Mayhew
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: