Whenever every user visits, ordinary dynamic pages will instantly read the data in the database and then display it to the visitors. Reading the database is a job that consumes CPU and database program resources. When the number of visits increases, access delay will occur.
The static HTML page uses a program to write the data that users need to read into the HTML file at one time. When the user accesses, he no longer needs to read the database and directly sees the data, which greatly reduces the burden on the server and database and improves the access speed.
Because ordinary ASP pages are connotated with scripting language, when users access through browsers, the server needs to first explain the scripting language in the page, convert the script to display content and then display it to the user.
HTML pages are interpreted in one go through a program and written into a web page file directly recognized by the browser. When the user accesses, the server does not need to explain and convert the access again, which greatly reduces the burden on the server and database and improves the access speed.
2. SaferThe main target of a cyber attack is the website's database. After the web page is statically processed, users do not need to connect to the database when accessing the website, thereby breaking the connection between the attacker and the database, making the attack without target. In theory, a website with a full site static has no vulnerabilities to attack.
3. It is easier to be searchedThe world's major search engines such as Baidu, Google, etc. crawling and inclusion of HTML pages is more timely and comprehensive than dynamic pages. The use of static HTML pages greatly increases the chance of a website being searched. Give you more opportunities to show yourself.