Skip to content

Label issue - does ESPUI do some sort of caching? #319

Open
@Hacking-Away

Description

@Hacking-Away

I am using a label to display an image:

image1Label = ESPUI.label("An Image Label", ControlColor::Peterriver, "<img src='path/to/image'>");

The img src is another webserver instance on the ESP, on port 81, serving only the image. This works fine, i see the image in the label.

I can update the label later just fine, with:

ESPUI.updateLabel(image1Label,"test update");

But if i change the image served by the above second server instance and try to update the label with:

ESPUI.updateLabel(image1Label, "<img src='path/to/image'>");

I still get the old image unless i use the browser to refresh the page.

If I go direct to the URL in the browser i can see it has indeed updated, so it's only ESPGUI that isn't getting the new image.

Is it some sort of caching?

Any ideas appreciated.... :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions