Website Optimization-static and dynamic pages have their own advantages

Source: Internet
Author: User

Website Optimization-static and dynamic pages have their own advantages

 

Author: Anonymous Source: Online

Some websites that have just begun learning Optimization
It is often recommended that the page be static. Static pages are indeed a good website Optimization
Policy.
1. Faster access than dynamic pages
When the data volume is equivalent, the download speed of static pages is faster than that of dynamic pages. This is a friendly performance for both users and search engine robots. In particular, your site traffic is very large and the data volume is also very large. At this time, the download speed of the page is very important for your website.
2. Enhanced page controllability and reduced page Similarity

In the process of static pages, this function is generally designed. You can manually enter the name of the static page to be generated. This is helpful for search optimization. For example, the author selects
The file name is webceo-download. Search for "webceo" in Google
"Download" is ranked third. You can check it out. The first three of the search results all show the Web CEO in the URL, and Google adds it to the rough.
It can be seen that Google still needs to consider this. However, when a dynamic page is not processed, its file name is usually like this: "Download. aspx? Id = 123 ". Such text
The file name is definitely not in front of the file name.
Similarly, HTML tags such as title, keyword, and description can be manually controlled. By increasing the controllability of these page elements, we can reduce the page similarity and search engines will also include more pages.
Static pages do have some advantages. However, after practice, I also find that static pages are not a good thing. However, I would like to remind you whether to implement static pages depends on the specific environment. If the application is inappropriate, it will not only fail to achieve the optimization effect, but may also cause a lot of trouble.
1. Generating static pages will increase the server space burden.

Some people estimate that the content of an article may take about 5 k-10 K, while other code may take 2/5-4/5, and a file may increase by about 15 K, for the article database of 0.3 million,
GB hard disk space is required. Although the current hard disk capacity is getting bigger and bigger, when the data size of the website reaches a certain level, you have to consider this factor.
2. A large number of static pages increase the maintenance workload.

Updating and revising websites is inevitable. You can imagine that a website with 10 thousand pages (not many) needs to add some content to each page, which is very troublesome. Of course you might say
I have written a little program, and the update will be very convenient. I admit that writing high-quality and efficient programs can reduce the workload. But it cannot completely solve the problems caused by a large number of files.

For example, many static websites have a batch update function. That is, generate static pages in batches. In fact, this function is well designed, but some problems may occur in actual use. I encountered
The biggest problem is that, due to various software and hardware reasons, among the tens of thousands of web files, a very small number of files are not successfully generated, and even worse, some files that are not successfully generated cannot be recorded. This is similar
"Time Bomb", which will one day "explosion ". It is always found by users or spider, and then found: Sorry, what is this page? No!
3. The generated Static Page consumes server resources.
Many developers use threads to generate static page functions. When the number of files is large, this will consume a lot of server resources.
4. Read dynamic data from static pages.
You may have discovered that many generated static pages can read the latest system updates. For example, the latest news about the system. This is actually a static page to implement the function of dynamically reading data. This can be achieved technically, and there are many implementation methods. But you have to consider this when designing your website.
It can be seen that static or dynamic pages have some advantages and disadvantages. One way is to convert static pages to pseudo-static pages. URL rewrite is used to rewrite dynamic URLs to form a static page representation. This is also the complementary advantages of the two methods.
Website Optimization
I think there is no dead standard for static and dynamic. Website Optimization
Policy, consider the above factors, carefully analyze the advantages and disadvantages, and select the best strategy for the actual optimization object.

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.