Boss Yao, who has been busy all day, came out to bubble in the crowd again today,
Good guy, just send a link,
I don't know. I thought it was an advertisement. If it wasn't for the owner, I would kick it out
Click to open it. I thought it was an informal website, but it turned out to be a normal website. It was a white excitement
Then I found, wait, the tortoise speed is really redefining "fast"!
After I got up and poured a glass of water, the website finally opened,
Since the web content has been cached locally, press F5 to refresh again,
Well, the speed is very fast this time. I already understand what he means by fast.
Then the mobile browser opened. After a long wait, the website finally opened
The enthusiastic group friend Zhao Jianjian has fed back to Dahei,
However, Yao Laohei, who is very cold, doesn't believe in evil,
It must be the problem of our network garbage
It seems that we have found a way to hit him in the face,
Let's open this familiar website again
I'm sorry, it's wrong. The following one is
Look at the debug window on the right. It takes so long just to generate a thumbnail. Why is it so slow? The server performance should not be so bad
Next, we can see that when thumbnails are generated, the URL of the original image is the following address
Visit directly,
Well, I'm not disappointed. The loading speed of 31.1kb/s is amazing
Then I guess the smart friends have already seen that the whole process is as follows
When I first visit his site, I will generate thumbnails of these articles,
To generate thumbnails, you must first obtain the complete picture and then generate it (nonsense)
But the pictures pulled from his website,
I don't say you can understand this speed (it may take 10s to get a 300kb picture)
Later, visitors will have to wait for these thumbnails to regenerate before they can see the home page of the site,
So, of course, it makes sense for the site to open so slowly,
For the second visit, because the browser has a thumbnail cache, it directly returns the locally cached content
So if you refresh again, the illusion of very fast speed will appear.
Then, how to deal with such problems as pit ratio,
The answer is obvious,
The server performance is known to be acceptable, but the upload bandwidth is insufficient,
So you just need to change the image on the server quickly.
It is also known that my map bed server is based on global CDN acceleration,
No matter where you are, you can have high-speed access all over the world,
More importantly, it is still free to use,
So using my map bed can perfectly solve this problem.
However, it is obvious that my scheme has been passed
So, is there another way?
Zhao Jianjian's classmate said nothing
It seems that this is also a simple and honest man. How can he be confused
The method is simple. Modify the server host directly
Add one
127.0.0.1 www.fzuu.cn
In this case, because of the local circuit,
When generating thumbnails to request original images,
Get directly. More importantly, because you don't use the Internet,
Therefore, it does not occupy the external network bandwidth,
The access speed of the site will naturally become faster.