Current vfs cache offers, none, full and write options. Would it make sense to have a read option as well.
Use case: I’ve an application that reads very frequently from a remote and writes infrequently. The network connection could go down, here a read cache will speed up repeated reads but having write cache is a problem, since, if the remote goes down cache will never be sent.
I think having a vfs cache only for reads would be possible but I think it would give a bad user experience. It would have all the limitations of --vfs-cache-mode off but with all the downsides of having a local cache.
You could try the union writeback cache with --vfs-cache-mode off that might be more what you are looking for