tl;dr Are there any known limitations or sensitivities for serving Emscripten-based libraries on the web? I'm specifically wondering about caching and gzip/other encoding issues.
The long version: I'm working on a project which uses the Emscripten-based library
texlive.js. Everything works perfectly when testing locally with Node.js http-server, but when serving off of Google App Engine, I've run into
problems. First, I was seeing some binary files being partially populated in the virtual file system. The file content was plaintext and not gzipped, but the file was truncated suspiciously close to the gzipped content-length. After disabling gzip encoding, that issue has gone away. Now I'm observing correct behavior the first time I use the library after purging the browser cache, but the second time I try to use it, the files are empty in the VFS. Is it possible that 304 Not Modified responses are not reading cached file content into the VFS?
I've been able to reproduce this in both Chrome and Firefox.