Skip to content

Releases: FreshVine/jQuery-cache-images

1.8.0

08 Dec 23:19
Compare
Choose a tag to compare

Broken Caches and automatic Re-Fetching

This release focused on 2 primary goals. To ensure that we verify syntaxtically correct base64 encoded strings before use/storage. And that we automatically attempt to re-fetch images that are corrupted.

As we've been using this library int he wild we've run into instances where the local keys for images exist, but they are not correctly stored. This resulted in 'blank' images being shown (the default image not the one expected). Instead of asking the user to clear their cache so that new images would be fetched, we have updated the script to do this for them.

The Demo has also been updated to function correctly for both localStorage and indexedDB. There is also a new button that will corrupt the cached version of the cat gif. You can see in the console log whenever an image is fetched (and what method is used).

The debug console messages were also overhauled to be more explicit and focused. This should help anyone wishing to use the library going forward.

1.7.0

08 Dec 16:21
Compare
Choose a tag to compare

Correctly Implement Callbacks

Callbacks are required for the IndexedDB to work (as the sqLite queries are not asyncronous). These callbacks are now fully implemented into the Image Caching plugin.

Also added a new Start function that fires everytime a new instance of $().cacheImages() is initiated.

v1.6.0

07 Oct 18:22
Compare
Choose a tag to compare

Two issues fixed with this release. The caching will now work with background images in the same way that it can be used for img elements. Though if a element has both an src and css background image the src will be captured.

We also added support for forceSave. This is a new option you can use with the jQuery function.

$(selector).cacheImages({url: 'http://awesom.tld/sweet.img', forceSave: true } );

Callbacks also added for droping cached media. Note that the callback is the second condition in the drop function

$.fn.cacheImages.drop( url, callbackFunction, storagePrefix );

v1.5.0

11 Nov 03:04
Compare
Choose a tag to compare

Ensured that all of the console outputs are tied into the debug mode setting.

$.fn.cacheImages.defaults.debug = true/false;

v1.4.0

11 Nov 01:32
Compare
Choose a tag to compare

Re-ordered the params on the cacheImages.Output() function so that the storage prefix is now last (since it is most likely to be set using the config approach of:

  $.fn.cacheImages.defaults.storagePrefix = 'yourPrefix';

The updated function is now ordered as:

$.fn.cacheImages.Output = function( url, callback, storagePrefix ){ }

v1.3.0

28 Aug 01:09
Compare
Choose a tag to compare

Added indexedDB support, and added better support for success callbacks to manage the a-sync well.

v1.2.0

21 Aug 04:45
Compare
Choose a tag to compare

Fix some quirk when the xhr response doesn't correctly set the totalSize.

v1.1.0

21 Aug 03:26
Compare
Choose a tag to compare

Added a few callbacks and restructured the functions to make them more accessible.

v1.0.0

19 Aug 18:03
Compare
Choose a tag to compare
Added the cacheImagesOutput( url )

Kicks out the encoded string for a URL