I need to use chunked transfer encoding, and I am dealing with possible errors when creating content. If some error occurs during the processing of the content I send, I need to make the (partial) content that has already been sent invalid. In IE10, I was able to get the browser to do this with the trailing header
Refresh: 0; url=http:
but in Chrome I canβt find any solution, as it seems that the trailing headers are not implemented in this browser.
What are my options? How can I tell the browser and / or user that the downloaded file is invalid (therefore, it should not be opened or saved)?
source share