I have an ASP.NET web application and I’m thinking about the following: before sending any HTML or CSS content to users, I want to “compress” them, then cache the result and send it to clients.
I know that you can compress them by removing spaces, comments, etc., but I am not very familiar with more advanced solutions for this.
- In addition, what are the compression methods and what are the advantages of each of them?
- Does some browsers or the HTTP protocol itself support any kind of compression?
EDIT: I'm also interested in doing this with dynamically generated HTML.
source
share