|
|
@ -336,7 +336,6 @@ public class ResourceInfo implements IResourceInfo {
|
|
|
|
cacheControl = cacheControl.trim().toUpperCase();
|
|
|
|
cacheControl = cacheControl.trim().toUpperCase();
|
|
|
|
if (cacheControl.startsWith("NO-CACHE") || cacheControl.startsWith("MAX-AGE=0")) { return false; }
|
|
|
|
if (cacheControl.startsWith("NO-CACHE") || cacheControl.startsWith("MAX-AGE=0")) { return false; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -if-modified-since in request
|
|
|
|
// -if-modified-since in request
|
|
|
|
// The entity has to be transferred only if it has
|
|
|
|
// The entity has to be transferred only if it has
|
|
|
@ -352,6 +351,7 @@ public class ResourceInfo implements IResourceInfo {
|
|
|
|
// finally, we shall treat the cache as stale if the modification time is after the if-.. time
|
|
|
|
// finally, we shall treat the cache as stale if the modification time is after the if-.. time
|
|
|
|
if (d2.after(d1)) { return false; }
|
|
|
|
if (d2.after(d1)) { return false; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String mimeType = this.getMimeType();
|
|
|
|
String mimeType = this.getMimeType();
|
|
|
|
if (!plasmaHTCache.isPicture(mimeType)) {
|
|
|
|
if (!plasmaHTCache.isPicture(mimeType)) {
|
|
|
|