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

1

7

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.

Drawtube answered 20/2, 2011 at 16:42 Comment(0)
F
5

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

Faints answered 26/8, 2011 at 0:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.