Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top