Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 534
Saxon Druce Avatar asked Feb 20 '11 16:02

Saxon Druce


1 Answers

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

like image 197
Eren Güven Avatar answered Sep 28 '22 00:09

Eren Güven