php - curl returns different results every time the same URL is requested.
怪我咯
怪我咯 2017-06-05 11:07:58
0
6
739

The same link returns different results:
The above is requested by the same URL, but the returned results are different. The frequency of the first result accounts for 90%, and the frequency of the second result: 10%.
What is going on? Is it an nginx cache problem?

There are so many funny friends. What I'm returning is something static.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(6)
Peter_Zhu

Forget it, no one is paying attention to the question. I also deleted some private stuff. Case closed.

世界只因有你

Give you a magical URL: https://segmentfault.com

You will find that almost every time you request this page, the content you get is different. Isn’t it a surprise?

Peter_Zhu

Explanation is that the homepage is dynamic content, JD.com’s homepage is also like this

黄舟

Indicates that the content of the web page has been changed during the two requests

Peter_Zhu

It is normal for the same link to return different things.
Unless it is static fixed content.

滿天的星座

This is normal.

For example, on the product list information page, when the administrator adds a new product during the second visit, more data will be displayed.
Another example is if the website is load balanced, and random servers return results for each visit, and the databases connected to these servers are not the same, this kind of thing will happen.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template