I'm attempting to use adaptive cards in Outlook (actionable messages), and I'm trying to understand how the image rendering works.
Here is a simple card I'm using to test.
{
"type": "AdaptiveCard",
"originator":"--------",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "test image card"
}
]
},
{
"type": "Image",
"id": "image",
"url": "https://res.cloudinary.com/adaptivecardtest/image/upload/testimage.jpg"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
If I change the image located at that URL, the new image does not show on the adaptive cards. I would have simply accepted this behavior (maybe the image is pulled when the email is received, and thus it doesn't update), but if I send new emails they still show the old image, despite the fact going to that URL in a browser shows the new image. If I use a refresh card so that a new card is loaded from the HTTP request, the old image stays. It seems to update after an arbitrary amount of time (anywhere from an 1 hour to 3 or 4), and when it updates it updates in both OWA and the desktop client.
I deleted all cache and cookies for my browser, as well as attempting to use multiple browsers, but the image was not updated.
It appears that Microsoft exchange is caching the image. So when and how is the image URL accessed, and how is the image cached? Is there a way to force Outlook to refresh the cache?