Firebase部署不会更新JS文件 [英] Firebase deploy not updating JS file
问题描述
firebase deploy
,但网站上的文件没有更新。当我部署时,帐户管理显示发生更新,但文件保持不变。我做错了什么吗?我该如何解决这个问题?任何帮助将不胜感激。 谢谢 解决方案
成功,这可能是一个缓存问题。
你可以尝试按下cmd + shift + R(在Windows上按Ctrl + Shift + R)来做一个硬刷新缓存。
尝试直接进入文件的URL( https://< my-app> .firebapp.com / app.js
),并进行硬刷新。您应该看到它更新到本地。
使用Chrome,您可以通过在网络中选择禁用缓存选项打开DevTools,禁用缓存
I deployed a Firebase app, and made a change to one of the JavaScript files in the project. I re-executed firebase deploy
from the project directory, but the files on the site are not updating. When I deploy, the account management shows that an update occurs, but the file remains unchanged. Am I doing something incorrectly? How can I fix/troubleshoot this? Any help would be appreciated.
Thanks
If the deploy is successful, this is likely a caching issue.
You can try pressing cmd+shift+R (ctrl+shift+R on Windows) to do a hard refresh of the cache.
Try going to the file's URL directly (https://<my-app>.firebapp.com/app.js
), and do a hard refresh. You should see it update to what you have locally.
With Chrome, you can have the cache disable when DevTools are open by selecting the "Disable cache" option in the Network tab.
这篇关于Firebase部署不会更新JS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!