Differences between static pages, dynamic pages, and pseudo-static pages

Source: Internet
Author: User

1. Static page

  Advantage: compared to the other two kinds of pages (dynamic pages and pseudo-static pages), the fastest, and do not need to extract data from the database, fast, but also do not pressure on the server.

  Cons: because the data is stored in HTML, it causes the file to be very large. And the most serious problem is that the change source code must be changed completely, and cannot change one place, the whole station static page is changed automatically. If a large web site has more data, it takes up a lot of server space, and every time you add something, a new HTML page will be generated. If it is not professional maintenance is more troublesome.

2. Dynamic page

  Advantage: The space usage is very small, the general tens of thousands of data website, uses the dynamic page, may have only a few m file size, but uses the static page to be more than 10 m, more dozens of M or more. Because the database is transferred from the database, if you need to modify some values, directly change the database, then all the dynamic Web pages, will be automatically updated. This is obvious compared to the advantages of static pages.

  Cons: Slow user access, why is it slower to access dynamic pages? This question from the dynamic page of the access mechanism, in fact, our server has an explanation engine, when the user access, the interpretation engine will translate the dynamic page into a static page, so that you can view the source in the browser. And this source code is to explain the engine after the translation of the source code. In addition to the slow access, dynamic page data is called from the database, if the number of visitors, the database pressure will be very large. However, most of the current dynamic programs use caching techniques. But in general, dynamic pages are more stressful for servers. At the same time the dynamic page of the Web site generally for the server is more demanding, at the same time access to more people will also cause the server pressure greater.

3. Pseudo-Static pages

Pseudo-static page definition : "false" static page, is essentially a dynamic page.

  Advantages: compared to static pages, there is no significant increase in speed, because it is a "false" static page, in fact, a dynamic page, but also need to translate to static pages. The best thing is to have the search engine handle its own web page as a static page.

  disadvantage: as the name implies, "pseudo-static" is "false static", the search engine will not treat him as a static page, this is only we rely on empirical logic to analyze, and not necessarily accurate. Perhaps the search engine directly thinks it is a dynamic page.

Simple summary:

    • Static page access is the fastest, maintenance is more troublesome.
    • The dynamic page occupies small space, maintenance is simple, the access speed is slow, if the person who accesses many, will put pressure on the database.
    • There is no essential difference between using pure static and pseudo-static for SEO (Search engine optimization: Search engine Optimization).
    • Using pseudo-static will consume a certain amount of CPU usage, which can cause CPU overload.

Differences between static pages, dynamic pages, and pseudo-static pages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.