简体   繁体   English

Firebase 仅托管以前版本的 Flutter Web 应用程序

[英]Firebase only hosts previous version of Flutter web app

I hosted my web application through Firebase using Flutter.我使用 Flutter 通过 Firebase 托管了我的 Web 应用程序。 Initially, it was absolutely fine but I realised there was a small error so changed it an redeployed it.最初,它绝对没问题,但我意识到有一个小错误,因此对其进行了更改并重新部署了它。 However, when I ran flutter deploy it didn't change on the website.但是,当我运行flutter deploy它在网站上没有改变。 I thought that I might have to wait a while for the change to happen but I waited 5 hours and it still hasn't updated.我以为我可能需要等待一段时间才能发生更改,但我等了 5 个小时,它仍然没有更新。 I then tried a few more times, deleting different cache files but nothing worked.然后我又尝试了几次,删除了不同的缓存文件,但没有任何效果。 I then deleted the Firebase project all together and made a completely new one.然后我一起删除了 Firebase 项目并创建了一个全新的项目。 I deleted the .firebaserc and firebase.json files.我删除了.firebasercfirebase.json文件。 However, on the new website, it is still showing the old version of the website.但是,在新网站上,它仍然显示网站的旧版本。 I don't understand how that could be possible but any help would be really appreciated!我不明白这怎么可能,但任何帮助将不胜感激!

Visit your site from an incognito tab and validate.从隐身选项卡访问您的网站并进行验证。 Also make sure you didn't forget to run flutter build web before firebase deploy.还要确保您没有忘记在部署 firebase 之前运行flutter build web

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM