Well, the mem files are just binary data, but they often contain strings up front, so autodetection might see a little ascii and assume it's a text file, I guess?
Sounds like forcing the mime type is the thing to do, I assume that's what that mod does. - Alon On Tue, Feb 3, 2015 at 5:14 AM, Jean-Marc Le Roux <[email protected]> wrote: > FYI: > http://blogs.aerys.in/jeanmarc-leroux/2015/02/03/emscripten-doesnt-like-cloudflare/ > > It turns out our server (possibly because of WordPress but I’m not sure) >> will serve Emscripten’s *.mem files as text/html. Emscripten *.mem files >> are the program memory init files. You can read more about them in the >> “Memory >> Initialization” Emscripten documentation >> <https://kripken.github.io/emscripten-site/docs/optimizing/Optimizing-Code.html#memory-initialization>. >> *.mem files are now generated by default for -O2 and above. Anyway, >> CloudFlare will try to “optimize” the *.mem files as if they were HTML and >> break them. > > > For a "permanent" solution without disabling CloudFlare HTML > optimizations, one should try installing Apache mod_mime > <http://httpd.apache.org/docs/current/mod/mod_mime.html>. > I'll try that and report about how it works. > > Any other options? > > Regards, > > -- > 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. > -- 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.
