Comments (3)
I am having the same issue where if the user updated his image on the backend , the app won't load the new image and will always load from cache . Setting it to mutable will fix this issue but the image will not be displayed when the user is offline and the app will always request the image .
Does the lib auto delete cache after their max-age is expiated ? My backend does return cache control with max-age but not sure if the lib will auto delete .
from react-native-img-cache.
To your image URI, try adding the user id in query parameter.
Example: uri: `${profileImage()}?userId=${user_id}`,
This will make the URLs unique to each user and would help resolve your issue.
from react-native-img-cache.
@Nitroman605 @mayur-novus thanks for your advice, I used /api/profile/images/cropped?uuid={UUID}
to fix the issue.
Thanks again.
from react-native-img-cache.
Related Issues (20)
- hi! You can combine ‘react-native-fit-image’, add Add a function that makes it adaptive? HOT 1
- How can I determine whether the image is already cashed or not
- Is it possible to have a default picture. HOT 1
- support display local image HOT 2
- When add too many Images (At least 800 pictures) on the List, the App will crash! how to solve this question?
- Does it support remote SVG image? HOT 1
- Since immutable === true to execute getpath, what is the meaning of if(immutable === true) in getpath?
- 【We check here if IOS didn't delete the cache content】 what's mean?
- BUg
- How to easily migrate from react-native-fast-image
- Solution to ignore the URI query
- progress indicator is not work HOT 4
- Help! CachedImage in android become blur HOT 3
- [Request] - Please add TTL for cache
- How to load image from SD card?
- CachedImageBackground -- ImageBackground not available on RN 0.45 HOT 2
- React-Native-Fetch-Blob is NOT being maintained HOT 10
- Image doesn't show when the imageName contain spaces [IOS ONLY] HOT 2
- Cannot use with `react-native-fit-image` HOT 2
- ImageCache.getPath will get a wrong extension name while the uri like this:http://example.com/path?param=http%3A%2F%2Fexample.com%2Findex.html%3Ftype%3Dvalue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-img-cache.