Closed vr-devil closed 7 years ago
I have the same issue, have you found any solution?
Removing sendfile on
from my nginx.conf solved this issue. https://github.com/boot2docker/osx-installer/issues/100
@jaux Thanks~~~
Closing as this seems to be resolved. If you feel this issue was closed prematurely, please comment and let us know.
I build up a website on boot2docker, when I access it through a browser, the returned file(css & js) is broken. this problem happened on both Windows and OS X.
I try to build up website on OS X directly, not on boot2docker, everything is okay. the returned file is not broken.
The case is that, when i first started boot2docker, and access the website, the returned css file is normal, but when i make changes to file(e.g. append some content to file), then access website again, the returned css file is broken, file shows messy code on the browser.
I use command ‘hexdump -C test.css’ to check original file and broken file, the tail part of file bytes is different.
original file(test.css, encoding is utf-8):
original file(hex format):
broken file(hex format):
My environment:
docker-compose.yml