Home  >  Q&A  >  body text

php - curl returns different results every time the same URL is requested.

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.

怪我咯怪我咯2716 days ago725

reply all(6)I'll reply

  • 天蓬老师

    天蓬老师2017-06-05 11:09:58

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

    reply
    0
  • 世界只因有你

    世界只因有你2017-06-05 11:09:58

    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?

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-05 11:09:58

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

    reply
    0
  • 黄舟

    黄舟2017-06-05 11:09:58

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-05 11:09:58

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

    reply
    0
  • 滿天的星座

    滿天的星座2017-06-05 11:09:58

    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.

    reply
    0
  • Cancelreply