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 <https://github.com/manuels/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 
<https://github.com/manuels/texlive.js/issues/26#issuecomment-99539140>. 
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.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to