Skip to content

1.8.0

Latest
Compare
Choose a tag to compare
@paulprins paulprins released this 08 Dec 23:19
· 1 commit to master since this release

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.