diff --git a/pom.xml b/pom.xml
index 3e89d1b..93d4d4f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
org.warp.filesponge
FileSponge
- 0.3.1
+ 0.3.2
FileSponge
diff --git a/src/main/java/org/warp/filesponge/DiskCacheImpl.java b/src/main/java/org/warp/filesponge/DiskCacheImpl.java
index 1555678..2f84907 100644
--- a/src/main/java/org/warp/filesponge/DiskCacheImpl.java
+++ b/src/main/java/org/warp/filesponge/DiskCacheImpl.java
@@ -70,7 +70,7 @@ class DiskCacheImpl implements DiskCache {
@Override
public void writeMetadataSync(URL url, Metadata metadata, boolean force) {
// Check if this cache should cache the url, otherwise do nothing
- if (!shouldCache.test(url)) return;
+ if (!force && !shouldCache.test(url)) return;
var key = serializeUrl(url);
@@ -130,7 +130,7 @@ class DiskCacheImpl implements DiskCache {
@Override
public void writeContentBlockSync(URL url, DataBlock dataBlock, boolean force) {
// Check if this cache should cache the url, otherwise do nothing
- if (!shouldCache.test(url)) {
+ if (!force && !shouldCache.test(url)) {
return;
}