I’m fiddling with a configuration where I rclone mount a remote from Box (read-only) and expose certain directory trees via an apache webserver.
When Apache’s mod_autoindex looks at a directory, rather than just stat-ing the files (which would be fast), it seems to be doing the equivalent of doing the Linux “file” command and peeking at the magic number at the beginning of each file. That seems to cause rclone to retrieve the entire file from Box even though I should only need the first few bytes of it. Since there are dozens of files that are tens of megabytes each, the page takes a very long time to load.
I tried specifying --vfs-read-chunk-size 1M and --vfs-read-chunk-size-limit 200M and it didn’t seem to help. I see the same problem if I just run “find *” in that directory.
Does anyone know a way to either get an rclone mount to quickly fetch the start of each file without fetching the whole thing or to keep mod_autoindex from reading from the file itself?