Vagrant + Virtualbox + ( Nginx / Apache ) caching issue
This is one of the annoying errors you might get when using the above combinations. Very hard to cache, you might turn the world upside down looking why your css or js files are not getting updated on the browser unless you restart the vagrant box.
The symptoms are, you do a edit on your css or js files, and when you check on the browser, it the css or js file either corrupted half way, or it has some unicode characters at the last line and your changes are not updated.
At the writing of this post, it’s a known issue when the vagrant and virtual box combined, theres an option called "sendfile" that’s causing the problem. Simply turning it off and giving a vagrant reload could fix it.
If you are on nginx, simply edit the nginx.conf file and add/modify sendfile off option
If you are on apache, edit your conf file ( virtual host or the httpd conf file ) and add the below option,
<Directory YOUR_PROJECT_DIRECTORY> EnableSendfile Off </Directory>