firebase3存储URL是否随时间或位置而变化

时间:2016-07-15 20:03:26

标签: firebase-realtime-database firebase-storage

我想知道我是否可以保存从存储到我的数据库的URL,并在每次我想要图像时检索链接?现在,每次我需要获取图像时,我都会调用以下函数,而且速度很慢。我只是担心链接可能会根据用户的位置和时间而改变?

           storage.ref(thisEvent.eventImgInReference).getDownloadURL().then(function (url) {                         
                            //here I just add the image url
                            thisEvent.eventImgLink=url;
                            //
                            $scope.$apply();
                        }).catch(function (error) {
           });

1 个答案:

答案 0 :(得分:3)

如果您在Firebase控制台中撤消下载令牌,则下载网址只会更改,因此如果您将其存储在数据库中,则完全没问题。