smartReadFile icon indicating copy to clipboard operation
smartReadFile copied to clipboard

Ensure the response is not GZIPed

Open thepag opened this issue 11 years ago • 0 comments

Had reports of this not allowing seeking on Android, but it turned out to be that their response was being GZIPed. This was causing a few browsers to behave a little odd, but Android really did not like the data like that. .. I imagine other solutions wouldn't either, such as the Flash as already known.

Consider adding this header to smartReadFile() to ensure the output is not GZIPed:

header("Content-Encoding: none");

That way no one else will fall foul to this problem, where their server is automatically GZIPing all the output from PHP files.

thepag avatar Mar 08 '14 17:03 thepag