Questions tagged [image-caching]

Image cache reduces client-server requests for images.Image cache is useful for fast retrieval of images. we can store server side images in application using image cache and retrieve any time when we want even if server connected or not.

206 questions
131
votes
18 answers

How to force a web browser NOT to cache images

Background I am writing and using a very simple CGI-based (Perl) content management tool for two pro-bono websites. It provides the website administrator with HTML forms for events where they fill the fields (date, place, title, description, links,…
Philibert Perusse
  • 3,656
  • 5
  • 22
  • 25
55
votes
14 answers

Is there a way to force browsers to refresh/download images?

I have a problem where users are reporting that their images aren't being uploaded and the old ones are still there. On closer inspection the new images are there, they just have the same name as the old one. What I do on the upload is that I rename…
uriDium
  • 12,309
  • 19
  • 70
  • 131
46
votes
4 answers

Website image caching with Apache

How can I get static content on Apache to be {cached by browser} and not {checked for freshness {with every request}}? I'm working on a website hosted on Apache webserver. Recently, I was testing something with headers (Content-Type for different…
Piskvor left the building
  • 87,797
  • 43
  • 170
  • 220
31
votes
2 answers

Glide : How to find if the image is already cached and use the cached version?

Scenario: I have a large GIF image which I want to cache the first time user opens the app using Glide - Image Loading and Caching library. After that whenever user opens the app, I want to show the cached version if present. This GIF URL will…
Shobhit Puri
  • 24,785
  • 8
  • 89
  • 115
21
votes
5 answers

SDWebImage and setting custom HTTP headers?

I´ve just changed my code for caching images away from EGOImageCache to SDWebView. Unfortunately i don´t know how to set custom HTTP headers as i have to send authentification to be able to fetch images. It was easy done with EGOImageCache as i´ve…
rockstarberlin
  • 1,833
  • 1
  • 18
  • 31
17
votes
8 answers

Android java.lang.OutOfMemoryError?

04-25 08:19:10.111 2431-2603/com.example.francesco.guidedautorewithtabs E/art﹕ Throwing OutOfMemoryError "Failed to allocate a 4194316 byte allocation with 1983651 free bytes and 1937KB until OOM" 04-25 08:19:10.114 …
12
votes
5 answers

Android - How to get image file from Fresco disk cache?

I am using the Fresco library. I can't find any related info in the Fresco documentation, how can I get an image file from Fresco's disk cache?
Eldar Miensutov
  • 1,767
  • 1
  • 14
  • 22
11
votes
5 answers

Cache URL images iphone UITableview

I'm seeking a tutorial on how to cache images loaded from a url into cells of a uitableview. I found an example here http://www.ericd.net/2009/05/iphone-caching-images-in-memory.html#top But the code is incomplete. I'm an objective c novice so I…
dubbeat
  • 7,275
  • 18
  • 66
  • 115
10
votes
3 answers

How to cache images only in disk using Kingfisher?

I am using Kingfisher library for downloading and caching images. I am facing some issues in the implementation: Are the images cached in both memory and disk? Is there any provision to cache images only on disk? I have already read multiple posts…
PGDev
  • 20,976
  • 5
  • 29
  • 68
10
votes
3 answers

Android Glide: How to download and cache bitmaps?

I am using Glide to download and cache images on Android. Everything works well except the fact that I don't want to load the bitmaps directly into the ImageView, I don't want to have the fade animation, neither image placeholders. All I want is to…
Zbarcea Christian
  • 8,320
  • 16
  • 74
  • 124
9
votes
5 answers

Where to cache remote image files in iOS?

I am planning to cache the images from a server and use show it as a sort slide show in my App. I would be asynchronously loading the images. I have two options: Either to cache the images as a File and use it whenever necessary. Cache the images…
Krishnan
  • 11,487
  • 22
  • 87
  • 152
9
votes
1 answer

How to set iOS cache and disk storage size and how does cache get restored from disk storage after app termination?

I've already asked When exactly do things get removed from urlcache's memory and disk? Now I have some more follow up questions: The memory cache is restricted by the iPhone's ram (usually 2Gb). But the disk Persistence is limited by 64Gb or…
Honey
  • 24,125
  • 14
  • 123
  • 212
8
votes
5 answers

Android Image caching - how?

I think it is asked and asked before, but still, there are things I can't quite understand. I have tried two different approaches: Keep all the images in memory, when certain limit is started to exceed, start removing them Let Android fix this with…
Danail
  • 10,138
  • 12
  • 51
  • 74
7
votes
1 answer

Using image.complete to find if image is cached on chrome?

I have been trying to find out if an external image is cached on the browser with js, this is the code I have so far: