Feature #784

Plugins: Cache remote (HTTP) image files

Added by andreus sebes about 11 years ago. Updated about 11 years ago.

Status:FixedStart date:11/18/2011
Priority:NormalDue date:
Assignee:Andreas Smas% Done:


Target version:3.4


I'm developing a plugin that use several images loaded from http. That images are loaded to the directory to make menus.

The problem is the images are always the same, but showtime is always getting them from http witch takes time.
Because of this the user have to wait to see the images and the menu is not fluid.

Could it be possible to cache http images on disk for a period of time?

Associated revisions

Revision b888f9b7
Added by Andreas Smas about 11 years ago

glw: Make image loaders load expired images from cache if they are available.

It then retries (at lowest priority) to refetch those images and will
replace the displayed image if the contents have changed

Fixes #784


#1 Updated by Andreas Smas about 11 years ago

  • Category changed from Plugins to Filesystem
  • Status changed from New to Need feedback

Showtime will cache the images correctly based on the HTTP headers.

Even so, I think some of the HTTP servers out there just does this incorrectly.

But i'm thinking of a better way so that showtime can always use images from cache and just
reload them afterwards.

Do you have an URL to the images in question?
Just want to make sure that the current cache mechanism is not broken.

#2 Updated by andreus sebes about 11 years ago

Hi andreas,

This problem is for all images i get from HTTP.

Try this URL for example:

#3 Updated by andreus sebes about 11 years ago

I tested with more images and some are being cached because that load instantly.

#4 Updated by Andreas Smas about 11 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

#5 Updated by andreus sebes about 11 years ago

Working very well! thanks andreas

Also available in: Atom PDF