Using the example code for a download facility with the FileExplorer I note that you turn off httpCompression. Is this necessary, or can one try to take advantage of compression?
Andrew
3 Answers, 1 is accepted
0
Fiko
Telerik team
answered on 15 Oct 2009, 02:27 PM
Hello Andrew,
The code bellow is used in order to avoid compression, because in the example the content sent to the browser is of type image/gif. Note that RadCompression compresses only specific content types and the type in the demo is not included. That is why I recommend you to exclude the handler from the RadCompression.
[RadCompressionSettings(HttpCompression = CompressionType.None)]// Disable RadCompression for this page ;
Please do not hesitate to contact us if you have any further questions.
Thanks for the response - the impliciton of your reply is that it might not matter? If only selected content (to do with AJAX) is compressed, then presumably anything sent as a downlaod woudl be sent "as is".
I ask this becasue it may be helpful to compress "on the fly" to speed up a download without requring the user at the other end to then decompress. But I suppose this more a general issue to do with browser capabilities and not specific to telerk.
Thanks
0
Fiko
Telerik team
answered on 21 Oct 2009, 07:32 AM
Hi Andrew,
Yes, it doesn't matter whether this code will be used or not, when the sent content type is different than the supported ContentTypes by the RadCompression.