Caching images on first load of Retool app?


Is it possible for Retool to download a list of images stored as a path in a Postgres table (which I am currently getting from GCS) on the first load of the app or on refresh? I want to lessen the time to call and refresh the image component that I am using.



Do I understand this correctly? On app load you want to fetch a list of image urls from your postgres db an download the files from GCS as be it some kind of cached image?

Retool doesn't have storage for storing files. You would need to convert the file to base64 and store the string in the Retool db or in (multiple) temporary states.
i don't know how much you can store in the state.

1 Like

or save it to LocalStorage

Retool official file storage will come later. Here is the news

beta access click here