Flash AS3, bytesLoaded, bytesTotal problem, a look at mod_deflate

In my urge to explode Google PageSpeed, I enabled mod_deflate on apache2.
Afer a few weeks, a colleague told me there was some weird behaviour with few AS3 preloaders on one of my servers…

After sneaking around with bytesLoaded and bytesTotal, I have noticed this:

[0,22236,14086,22236,22236,26647,26647] etc...

This array stores:

[bytesLoaded, bytesTotal, bytesLoaded, bytesTotal, etc,]

As you can see bytesTotal change within ProgressEvent function!!!

I first thought it was a player problem since I would receive no request for mp3 and jpg on problematic browser (Safari, Chrome, IE), well most browser…

Then the whole thing pointed server configuration issue again…

I mark this one as « Get rid of mod_deflate » 😉