Vagrant/VirtualBox/Apache2 Strange Cache Behaviour

Found the answer here:

JC,

What you’re seeing is probably because the server serving the static files
is using the “sendfile()” syscall, which is broken with the VirtualBox file
system. You need to disable sendfile() usage in your server. For Apache:

EnableSendfile off

And for nginx:
sendfile off;

Best,
Mitchell

Leave a Comment