CONTENT_LENGTH_MISMATCH errors when using c9



I’m using C9 to build a Laravel web app, with gulp to compile the frontend assets, and most of my testing involve full-page reloads. About 10% of the time, the page will fail to load because Chrome throws a NET::CONTENT_LENGTH_MISMATCH error when trying to download the compiled JS and CSS files.

The filesize on C9 keeps changing as I make edits and recompile, but it’s as if the nginx reverse proxy C9 uses is not reading those changes correctly, and is sending outdated Content-Length headers.

Is anyone else seeing this problem, and is there a way to solve it?