Comments (5)
You can set a max cache age of 1, but that would apply for all requests (and is also a bit hacky):
from webimageloader.
Hi Nik,
Thanks for the feedback.
I ended up "closing" the cache, opening the underlying disk LRU, and removing the item manually.
Also a huge hack, but it works for now. ;)
Best,
Jay
from webimageloader.
Here's my code if you or anyone else is curious.
https://gist.github.com/bobz/ff1a3f28ac0ead18115c
Just need to make sure you re-initialize the imageLoader later.
Bear in mind, this works ok because this is a rare occurrence in my application, usually the default behavior is great.
from webimageloader.
There's currently no way of asking the library to bypass the cache but I'll look into adding it. Another workaround (that may not fit you) is adding a random query parameter to your url like ?cache-bust=1234.
from webimageloader.
So you mean when adding a custom query parameter the image is not delivered from the cache because it was saved with a different key before? Good to know :)
from webimageloader.
Related Issues (20)
- Use HttpResponseCache (or similar) instead of reimplementing HTTP caching HOT 4
- Document the internal of webimageloader
- Support redirects HOT 13
- Pause async loader on scroll HOT 2
- Packages and Eclipse HOT 1
- Disk Cache not cacheing last image HOT 2
- LruCache and recycle bitmaps HOT 1
- Not possible to request images over HTTPS HOT 2
- Not working with new version of DiskLRUChache HOT 1
- Generate new version using DiskLRU 2.0.0 HOT 4
- Allow to post xml with the request
- Flag to ignore cache and force reload HOT 4
- Image from disk cache is without transparent background HOT 3
- Not able to load certain URLs
- Some images are always loaded from the network
- APIs for thread management
- Custom header attributes for request HOT 3
- Create load function which retrieves the path to the file instead of a Bitmap HOT 3
- Create a class which inherits from AsyncTask for progress updates HOT 2
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 webimageloader.