example for caching cloud function for firebase requests and only re cache after a successful edit to the profile
问题 In my app, Users profiles are open to the public and only updated by the profile owner. The profile URL is example.com/profile?user=@user.me And based on the docs https://firebase.google.com/docs/hosting/functions. I can cache the response JSON of the function, in this case, the public profile. Which will save me a lot of at cloud functions executions and Firebase database bandwidth And when the user updates his profile, I want to re cache the profile in the CDN. I think that can be done by