Hi Miro Community,
I'm working on a project that uses the Miro REST API to update an existing image widget with content from a Dropbox URL. While the API successfully processes the updates (I get a 200
response and the modifiedAt
timestamp confirms the widget has been updated), the widget still displays a cached version of the image hosted on Miro’s servers.
Here’s a summary of what I’ve done:
- I’m appending a cache-busting query parameter (e.g.,
&cb=<timestamp>
) to the Dropbox URL to ensure the URL looks unique for each update. - I’m temporarily setting the widget’s image URL to a placeholder before applying the updated Dropbox URL to force Miro to refresh the image.
- The
modifiedAt
field in the widget API response updates, confirming that Miro acknowledges the change, but theimageUrl
field still points to a Miro-hosted cached version of the image. - If I manually update the image widget in the Miro UI, it correctly fetches the updated Dropbox content.
My Questions:
- Is there a way to ensure Miro fetches and displays the latest version of the image via the API, without manual intervention?
- Does Miro ignore query parameters (like the cache-busting parameter) when determining whether to re-fetch an image from an external URL?
- Are there specific best practices for API-driven updates to image widgets to avoid this caching behavior?
Any insights or suggestions would be greatly appreciated! Thank you in advance for your help!