You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/01/10 14:32:02 UTC
svn commit: r1431349 -
/tomcat/trunk/java/org/apache/catalina/webresources/CachedResource.java
Author: markt
Date: Thu Jan 10 13:32:02 2013
New Revision: 1431349
URL: http://svn.apache.org/viewvc?rev=1431349&view=rev
Log:
Invalidate the cache entry if a previously missing resource is now present.
Modified:
tomcat/trunk/java/org/apache/catalina/webresources/CachedResource.java
Modified: tomcat/trunk/java/org/apache/catalina/webresources/CachedResource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/webresources/CachedResource.java?rev=1431349&r1=1431348&r2=1431349&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/webresources/CachedResource.java (original)
+++ tomcat/trunk/java/org/apache/catalina/webresources/CachedResource.java Thu Jan 10 13:32:02 2013
@@ -72,6 +72,11 @@ public class CachedResource implements W
return true;
}
+ if (!webResource.exists() &&
+ root.getResourceInternal(webAppPath).exists()) {
+ return false;
+ }
+
// If modified date or length change - resource has changed / been
// removed etc.
if (webResource.getLastModified() != getLastModified() ||
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org