All that is done by IIS and the browser. Just set static and dinamyc compression on IIS and you're done.
can I dynamically reduce the page size by compressing / decompressing its HTML
-
13-04-2022 - |
Question
I want to know if I can apply compression/decompression to my existing aspx page. What I want to say is that,
- 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.
At client machine that compressed HTML source will get decompressed and rendered as normal aspx page.
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow