example for caching cloud function for firebase requests and only re cache after a successful edit to the profile

给你一囗甜甜゛ 提交于 2019-12-06 06:11:12

firebaser here

The integration between Cloud Functions, Firebase Hosting and its CDN is currently a purely time-to-live based cache. When you set a cache-header in your Cloud Functions, the CDN puts your response in its edge caches for the time period you indicate. Once it expires, the CDN edges will stop serving the content from the cache and request a fresh copy from the server when a user on that edge requests it.

We know that having an API to tell the CDN to refresh this content would allow for many additional use-cases. But this is currently not in the scope of Firebase Hosting.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!