AWS S3 存储桶图像 - React Native 应用程序不断显示旧图像

AWS S3 bucket images - React Native app keeps showing old image

我的应用一直显示我的旧图片。我没有存储桶版本控制。我尝试重新启动应用程序,但它一直显示这个旧图像。它是否以某种方式缓存?关于如何解决的任何提示?

React-Native 的 Image 组件为 source prop 提供了 iOS 的缓存扩展。您能否尝试将缓存设置为“重新加载”?

<Image
  source={{
    uri: 'https://reactjs.org/logo-og.png',
    cache: 'reload'
    headers: {Pragma: 'no-cache'} // Android Support
  }}
  style={{ width: 400, height: 400 }}
/>

注意,支持仅适用于 iOS