Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Firebase 托管。
我注意到有时部署不会推送到与我的帐户关联的自定义域。
所以变化发生在:
myurl.firebaseapp.com
但不上
Myurl.io
这与 Firebase 有关吗?
使用 firebase.json 您可以定义和控制缓存。以下 json 片段可让您为图像定义 1 年的缓存。
{ "source" :"**/*.@(jpg|jpeg|gif|png)", "headers" : [ { "key" : "Cache-Control", "value" : "max-age=30672000" } ] }
资料来源:如何使用 Google Firebase 托管启用缓存?