Bug 33636

Summary: ExpandWar doesn't set the lastModified attribute
Product: Tomcat 5 Reporter: Jochen Wiedmann <jochen>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 5.5.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 38712    
Attachments: Patch setting the lastModified attribute on files being created by the ExpandWar class

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.