[MAGNOLIA-492] Value of http header "Last Modified" is not changed upon activation Created: 21/Jul/05  Updated: 17/Mar/09  Resolved: 26/Jul/05

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.1 Final
Fix Version/s: 2.1 Final

Type: Bug Priority: Critical
Reporter: Karsten Wintermann Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP, Tomcat 5.5, JDK 1.5.0_04


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

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);



 Comments   
Comment by Philipp Bracher [ 21/Jul/05 ]

commited to 2.1 branch (will merge turnk later)

Comment by Philipp Bracher [ 21/Jul/05 ]

commited to 2.1 branch (will merge turnk later)

Comment by Boris Kraft [ 26/Jul/05 ]

reassigned to RC3

Generated at Mon Feb 12 03:17:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.