Question

I want to know if I can apply compression/decompression to my existing aspx page. What I want to say is that,

  1. I must be able to compress the response send by the server in some compressed format . Please note, only the HTML Source to be compressed not entire aspx page to some .zip file format. I am saying so, as If copy the rendered HTML of my page in notepad and check its sizes, it varies in between 134kB-200kB (with Viewstates. And I can't disable that). I dont want to process my network that much load. I want it minmal, say 40-50kB is enough.
  2. At client machine that compressed HTML source will get decompressed and rendered as normal aspx page.

  3. Most Imp, my page are up and running. I need some HTTPHandler or Module or some sort of addin that will not require a lot of changes in my existing code. Can be used by making change in web.config . Minimal changes in aspx or master pages are welcome. In short , some global way of doing this.

Was it helpful?

Solution

All that is done by IIS and the browser. Just set static and dinamyc compression on IIS and you're done.

http://technet.microsoft.com/en-us/library/cc753681.aspx

http://technet.microsoft.com/en-us/library/cc754668.aspx

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