Bug 33636 - ExpandWar doesn't set the lastModified attribute
Summary: ExpandWar doesn't set the lastModified attribute
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.7
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks: 38712
  Show dependency tree
 
Reported: 2005-02-18 17:04 UTC by Jochen Wiedmann
Modified: 2005-03-23 07:03 UTC (History)
0 users



Attachments
Patch setting the lastModified attribute on files being created by the ExpandWar class (1.66 KB, patch)
2005-02-18 17:04 UTC, Jochen Wiedmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Wiedmann 2005-02-18 17:04:10 UTC
Hi,

files being created by the ExpandWar class have the creation date as the
lastModified attribute. This makes a proper cache handling quite difficult,
because the if-modified-since header increases after deploying, even if the
files in question haven't changed.

The attached simple patch changes the behaviour. It would be nice, if the patch
could be accepted at least as a configurable option. If so, I'd be ready to work
on more details and supply a larger patch later on.

Regards,

Jochen
Comment 1 Jochen Wiedmann 2005-02-18 17:04:51 UTC
Created attachment 14315 [details]
Patch setting the lastModified attribute on files being created by the ExpandWar class
Comment 2 Yoav Shapira 2005-03-23 16:03:04 UTC
Done for 5.5.9.