What are the best HTML + CSS compression methods?

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.

+3
source share
2

minify, google, yahoo, microsoft javascript css. . .

, IIS gzip (. http ).

-.

+1

Source: https://habr.com/ru/post/1764417/


All Articles