App Engine: Is it possible to disable Transfer-Encoding: Chunked for large static files?

1k Views Asked by At

As a follow-up to this question, is it possible to disable the "Transfer-Encoding: Chunked" method for large static files, therefore forcing a Content-Length to be returned instead?

My site serves a few Flash files. The small ones (500-700kb) report a Content-Length fine, but the large one (approx 3MB) doesn't, instead using chunked mode.

Although the file downloads fine, the Flash preloader doesn't work, because it can't tell how long the file is, and therefore what percentage is loaded.

Is my only option to write a dynamic handler to serve the static file?

Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

Transfer-Encoding is in the list of Disallowed HTTP Response Headers (modifying them has no effect). source