HML5 compressed files- SyntaxError: illegal character
I'm getting this error when I try to run from my website -
SyntaxError: illegal character SyntaxError: illegal character SyntaxError: illegal character
My host is hostgator - the page works on 000webhost though. I tried to include a htaccess file with
EDIT: So the uncompressed files work fine - I changed the const serveCompressedAssets to false - how can I get it running with the compressed files? But still get the same error. Any ideas?
Shot of my files - I included everything to see if that might work.
If you get the Illegal Character error, it very likely means that the file was still getting served without "Content-Encoding: gzip" flag, so it sounds like the htaccess file was not getting used. You can verify that by using the Network tab of Firefox Developer Tools, in particular the Headers view of the request (see https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Headers). That list should show "Content-Encoding: gzip" present in the "Response headers" section, next to Date, Content-Type, Content-Length and so on.
You can cross-reference by using the Network details tab on the page http://mzl.la/webassemblydemo, which does use gzip compression with the served files (that one is hosted with Amazon AWS S3 service)
answered Oct 08 '17 at 09:45 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here