Cannot build HTML5

I am building the app fine, and build for html works, but the bundling does not. When I upload to my server and run it, I keep getting:

Uncaught Unexpected data size: game.arci, expected size: 2608, actual size: 2528
VM146:9940

And the initial download of the game freezes. The Defold splash screen is there, but freezes at about 90% of the load.

Interestingly, this happens on one of my servers (a WordPress site), but not on my other server. Very odd.

working: History Links 0.101

not working: History Links 0.101

I think I saw someone else having similar issues, and the idea was that the server coes some caching, getting some mized files. :thinking:

1 Like

I agree. I was just about to post that I think it is a server cache problem. I do explicitly clear cache on that server every time, but I am pretty sure it doesn’t work for all items, based on other errors. Not sure what to do about it. I can complain to GoDaddy, but not sure they will know what to do.

So why not just use my working site? Because it has the word ‘game’ in the URL, it is blocked by many schools.

Both links load and play fine for me on first visit.

Do you clear your browser cache each time you change the files? This may help determine if the potential cache problem is on the server side or the client side.

I would not be surprised if most servers have aggressive cache rules for known formats like JS. But relatively unknown formats like ARCI may not have specific cache directives, creating a mismatch. Perhaps you could ask your server host to ensure the same cache rules apply to all file types used by Defold.

After each update, I clear cache on the server and in the browsers, and try several browsers. There is also the ISP cache and perhaps my house router cache. But it is certainly a cache issue.

1 Like

One brute force way of testing this (and possibly a solution to the problem) is to use a new folder name on the server for each update.

I tend to do this for web prototypes, mostly to keep a breadcrumb of builds for testing, but also to avoid caching issues.

1 Like