Static differences between authenticity and Authenticity

Source: Internet
Author: User

1. Use of pseudo-static

Some users think that the amount of pseudo-static and real-static files actually indexed will be very different. Otherwise, from your personal perspective, do you determine whether a post is really static or pseudo-static?

The estimation is very ugly, because the so-called static means that the address does not contain question marks, but static means. Is it true or false? Can the search engine see it?

Therefore, whether it is true or false, it is actually the same for search engines. The search engine did not say that you are false. I will not include you.

Why does the search engine not include websites with question marks? Because the search engine is afraid of entering an endless loop due to question marks (in the past, there was such a vulnerability on the mobile network, and the spider went in and crashed), the address with question marks won't be included in many times, pseudo-static is actually static for search engines. Because there is no question mark in the address, there is no real static statement much more than pseudo-static statement.

 

2. Why do I select pseudo-static

Many users say:

Is it really static?

Why not use static data?

Isn't access faster?

Isn't the load better?

Wait...

Here, we only use one question to answer: Why MYSQL.

Many users probably don't understand why many large forums have chosen the MYSQL database as the storage mechanism. Most of them are thinking: "Because DZ uses MYSQL, It is MYSQL ".

In fact, why did DZ survive on the days when so many Forum programs coexist? A big reason is that DZ uses MYSQL. imagine if the program modified by Big C was a text forum, would there be a DZ today?

Or from another perspective, why do so many large websites choose MYSQL instead of text as the storage mechanism?

The so-called text forum is similar to the real static statement. It stores data in space, reads and writes a large number of hard disks, and so on...

Why is this writing method obsolete?

I believe the answer is not what the teacher said:

"Discuz.net currently has 2129867 posts. If html is stored, the size is about 20799 MB, that is, about 20 GB. This does not calculate the space waste caused by the disk storage mechanism (the space occupied by 100 1 k files may be 200 K ). "

From my personal point of view, this reason cannot give users a sufficient reason not to use static data.

However, another reason is worth thinking about, that is why most sites do not choose to generate static data:

"Deleting and updating these html content will lead to a large number of disk io operations and a large number of disk fragments ."

As mentioned above, in practice, a large number of disk I/O operations (input, output) and a large number of I/O operations can be imagined, A large number of disk fragments may even cause bad sectors on the hard disk.

Therefore, for static generation, it is better to use text forums to better address your needs.

(Vice W is to do text Forum was born, at that time the name ofstar http://www.sh012.com, after the development difficulties into MYSQL, PW generates static pages, that is, the original PW text method, which is slightly improved to attract users' attention)

Of course, if you have a good memory, you should be able to remember that during PW4, the PW forum could not be accessed for a long period of time, and then the data recovered some time ago, the official statement is that the hard disk is damaged due to attacks. In fact, this statement is not credible. As a result, the hard disk is damaged due to attacks or a large number of I/O operations, I personally prefer the latter.

Of course, if you are more concerned about 5d6d, you should know that 5d6d was inaccessible one day a few days ago. According to unofficial news, the hard disk was broken, the reason for the damage is that a large number of users perform a large number of I/O operations. Imagine that in our forum, disk I/O operations are performed only when the administrator updates the cache, every member in 5d6d is an administrator. How big is the test of the disk? So I am not surprised that the 5d6d hard disk is broken.

Of course, many of my friends who have read this article have used BT, and I have heard that BT is very harmful to hard disks and cannot be used more frequently, this is the same as what is used here. A large amount of I/O causes disk fragments and even bad disk channels.

Here are some very practical examples to illustrate the problem.

 

3. disadvantages of pseudo-static

Of course, as the author of an article said

"If the traffic is slightly larger and the use of pseudo-static data causes overload of CPU usage, more than 300 online users will be suspended at the same time. If the use of pseudo-static data is not used, more than 500 online users will not be suspended at the same time, my ISS count is 1000"

This is true. Because the pseudo-static mode uses regular expressions instead of real addresses, the responsibility for determining which page is displayed is determined by the CPU directly. Therefore, the CPU usage increases, it is indeed the biggest drawback of pseudo-static.

 

4. What should we do?

Let's summarize.

1. There is no difference in SEO when using True static or false static.

2. Using true or static data may damage the hard disk and affect the Forum performance.

3. Use of pseudo-static will occupy a certain amount of CPU share, and a large amount of use will cause CPU overload

4. The most important thing is that we should use static resources for SEO.

So.

1. The real static method can be used to eliminate it directly, because no matter how it is generated, it is very harmful to the hard disk.

2. Since the authenticity and static effect are the same, we can choose pseudo static.

3. However, a large amount of pseudo-static resources will overload the CPU.

4. We only need to use it in large quantities.

5. Since static is just for SEO, we only need to give it to SEO with pseudo static, so we don't have to use it for users.

6. Therefore, we only need to use pseudo static data in the Archiver dedicated to SEO crawling.

 

5. Determine whether a website is static or pseudo-static.

IE browser

Open the website you want to determine, and then enterJavascript: alert (document. lastModified). This method can be used to determine the last update time of a Web page. If the time is the same as the current time, it indicates that it is pseudo-static, and vice versa.

Firefox

Open a Web page with FireFox. After the web page is fully opened, go to the FireFox console. "Tools"-"error console"-Shortcut Key: Shift + Ctrl + J. Then enter the following in the console:Alert (document. lastModified), View and record the last modification time.
Next, close the console, refresh the webpage, enter the query code in the console in the same way, and then view the last modification time of the file, if the time difference is found several times in a row, it can be determined to be pseudo-static.

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.