@Override
    public void dispose() {
        final File file = this.fileRef.getAndSet(null);
        if (file != null) {
            file.delete();
        }
    }
Cache resource backed by a file.

@since 4.1
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/FileResource.java