Page static, mainly for two aspects of consideration.
First: The speed of accessing HTML pages is faster than accessing PHP pages. PHP needs to be parsed when accessing the PHP page. When accessing HTML, the direct browser can parse it out. In particular, the PV volume is very large, at the same time, the premise of a large number of online visits. A simple and effective stress test can be done with Apache's own Ab.exe tool.
A stress test can be done at Apache/bin/ab.exe, which simulates multiple people and accesses a page concurrently
The basic usage
Ab.exe n 10000? c. http://localhost/test.php
-N indicates how many times the request
-C indicates how many people
Second: Facilitate SEO optimization. SEO search engine, more conducive to web crawler searches. At present, most of the portal sites, Sina, Sohu should be used by the static or pseudo-static technology processing. To improve search engine crawling and ranking.
Static is conducive to the principle of SEO: Dynamic PHP or JSP Web site will generally give the browser the corresponding permissions, and static pages do not have the right to this level. And the web crawler, the search engine is equivalent to the identity of visitors to crawl the page information. So the static page is more conducive to the search engine to crawl.
The last site that is statically processed is more secure. And even if a database error occurs, it does not affect the user too much.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.