Answer the question
In order to leave comments, you need to log in
Why is an outdated version of the page returned during parsing?
I parse the page of the site to which information is added constantly about once a minute.
For what reason, when I get this page using php, do I get an outdated version of it?
I tried both through curl and through file_get_contents, but I get a stubbornly old version of the page, this can be seen from the content.
If you go from the browser, then the content is already new, but when you get it using php, it's old, moreover, the lag is more than an hour ...
Does anyone have any ideas?
Answer the question
In order to leave comments, you need to log in
I found their page https://otvet.mail.ru/api/v2/questlist where all questions are stored in json and, which is important for you, all questions are updated in a timely manner.
That is, this code is enough:
And get the last 100 entries in the array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question