We’re using the Backendless Image Processor API to create a small avatar image (works), and then we retrieve a link to the (small, compressed) image and put this into ‘local storage’. The url in our test is:
Funny, the 403 error problem has now spontaneously disappeared (without us having made any changes).
However, the little avatar still seems to load relatively slowly when navigating across pages, even though we get the file url from local storage — which I imagine should be very fast. Would it be better to store the actual image (as base64 data) in local storage, so page load doesn’t have to find a file in our file system?
Would it be better to store the actual image (as base64 data) in local storage, so page load doesn’t have to find a file in our file system?
You can try this approach and compare loading time of two variants. It is strange that browser doesn’t cache these static resources. I would advice to to investigate this absence of caching more closer.