first of all, great community, helpful stuff and I learned a lot.
I’m almost done with the functional aspect of my demo/project and now I’m working on the non-functional part before going production.
So I’ve been looking into server size compression for scene files, haven’t yet made it work on CloudFront but in the meantime I did some test. Here is my test with data
I uploaded my scene.babylon (json) file 50 MB and it takes about 45seconds to download, along with everything else in my scene and works ok.
Now, as I haven’t managed to fix my server-side compression for babylon file yet, I decided to re-upload a manually gzipped version, added some encoding tag=gzip then went again and viewed the new file in Chrome.
Well, yes the file is now 8MB but the overhead of gunzipping locally seems to take longer, so total time of download+gunzip ~ 60 seconds!
so it seems after all while gzip saves network costs, it doesn’t help (and in this case harms) the total load time of the page.
Happy to learn otherwise!
PS> all HTML/CSS/JS are compresses on server side, and I believe given their small size, gzip works better.