Issue #383 Improved Firefox browser cache handling

Loading progressbar for cache
This commit is contained in:
Jindra Pet��k
2013-09-12 19:11:10 +02:00
parent cff6dff13d
commit 5e2bac3959
6 changed files with 100 additions and 25 deletions
@@ -38,6 +38,8 @@ public class MapBucket extends CacheEntry {
if (metadata == null) {
try {
metadata = new MetaData(getMetaDataStream());
}catch(IncompatibleVersionException ie){
} catch (IOException ex) {
Logger.getLogger(MapBucket.class.getName()).log(Level.SEVERE, null, ex);
}
@@ -69,6 +71,9 @@ public class MapBucket extends CacheEntry {
return null;
}
String responseHead = m.response.get("response-head");
if(responseHead==null){
return null;
}
String headers[] = responseHead.split("\r\n");
Map<String, String> ret = new HashMap<>();
for (int h = 1; h < headers.length; h++) {