Skip to content

iOS: Image reloads on app restart when using ignoreQueryParamsForCacheKey - IOS 18.4, Xcode 16.2 #85

@AmraneAchraf1

Description

@AmraneAchraf1

On iOS, FasterImage reloads images on every app restart but on android it's working well :

const imageStyle = { width: (deviceWidth * 4.9) / 11, height: 225 } as ImageStyle;
...
<FasterImageView
        style={props.imageStyle}
        onError={(event) => console.warn(event.nativeEvent.error)}
        source={{
          ignoreQueryParamsForCacheKey: true,
          transitionDuration: 0.3,
          cachePolicy: 'discWithCacheControl',
          url: props.photo,
          resizeMode: 'cover',
          blurhash: 'L9HLMD^,^,tQ01M{t7M{~WWXE1%2',
        }}
  />

URL Example :
url: "https://s3.eu-west-3.amazonaws.com/retrochic/products-photos/4715/15985.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAT4TVL4E5YE253RS6%2F20250625%2Feu-west-3%2Fs3%2Faws4_request&X-Amz-Date=20250625T042117Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=9361...ac986f8e89......c129f591"

`
"dependencies": {
"react": "18.2.0",
"expo": "~51.0.0",
"react-native": "0.74.5",
"react-native-reanimated": "3.16.7",
"react-native-gesture-handler": "~2.16.1",
.....
"@georstat/react-native-image-cache": "^3.1.0",

},
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions