Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-492

Value of http header "Last Modified" is not changed upon activation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.1 Final
    • 2.1 Final
    • core
    • None
    • Windows XP, Tomcat 5.5, JDK 1.5.0_04

      After activation of modified content from an authoring instance to a public instance, the value of the "Last Changed" http header field delivered by the public instance for the page does not change. The result is that the modified content is not delivered to the browser, unless the user flushes the browser cache or uses the "Shift-Reload" feature available on some browsers. The following steps reproduce the problem:

      1. Open "magnoliaPublic/features.html" in a browser window
      2. Edit features.html in the authoring instance
      3. Activate the changes
      4. Press "Reload" in the browser window used in step 1. The changes made in step 2 are not visible.
      5. Flush the browser cache and load the page or use "Shift-Reload". The changes are now visible.

      The following patch solves the problem:

      Index: CacheHandler.java
      ===================================================================
      — CacheHandler.java (revision 1174)
      +++ CacheHandler.java (working copy)
      @@ -432,6 +432,9 @@
      CacheHandler.validatePath(CACHE_DIRECTORY);
      CacheHandler.validatePath(CACHE_DIRECTORY + DEFAULT_STORE);
      CacheHandler.validatePath(CACHE_DIRECTORY + COMPRESSED_STORE);
      +
      + // clear in-memory cache also
      + Cache.clearCachedURIList();
      }
      catch (Exception e) {
      log.error(e.getMessage(), e);

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              kwinterm Karsten Wintermann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD