# ToastBar Actions & URLImage Caching

DevFeed: [ToastBar Actions & URLImage Caching](<https://devfeed.tech/articles/toastbar-actions-urlimage-caching-19615.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/toastbar-actions-urlimage-caching/>)

Author: Shai Almog

Published: 2017-02-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Caching](<https://devfeed.tech/topics/caching.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [browser](<https://devfeed.tech/topics/browser.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [cache](<https://devfeed.tech/tags/cache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains how to add undo actions to Codename One Toast messages and how improved URLImage caching uses browser capabilities on JavaScript, with filesystem and storage fallbacks where available. It also describes platform limitations for image adapters and return types.

## Source excerpt

I wrote on the Friday post about a few cool pull requests from Diamond but I didn't provide a usage example for that API. Probably the best usage example is gmail style undo. If you are not a gmail user then the gmail app essentially never prompts for confirmation! It just does whatever you ask and pops a "toast message" with an option to undo. So if you clicked by mistake you have 3-4 seconds to take that back!