ESP HTTP Client fetching old data
Posted: Wed Jul 29, 2020 4:44 am
Hi,
I am working with the ESP_HTTP_CLIENT_EXAMPLE from the ESP-IDF examples folder to test fetching a JSON text file from a webserver. I am running into what I think is a caching issue using the http_perform_as_stream_reader. I run the code once and get the response I expect. I edit the file online and then re-run my code and the result is the old file data.
Is there a way to force the HTTP Client to request refreshed data similar to a web browser?
Thanks,
~Nick
I am working with the ESP_HTTP_CLIENT_EXAMPLE from the ESP-IDF examples folder to test fetching a JSON text file from a webserver. I am running into what I think is a caching issue using the http_perform_as_stream_reader. I run the code once and get the response I expect. I edit the file online and then re-run my code and the result is the old file data.
Is there a way to force the HTTP Client to request refreshed data similar to a web browser?
Thanks,
~Nick