Is it possible (and reliable?) to use Firebase Cloud Function for Server Side Rendering AND store the rendered file on Firebase Hosting?
- Cloud functions SSR are getting triggered on data update, not visits
- Using CDN for the whole page (faster, no cloud function cold start)
- Can be really convenient in some situation (lot of read, few data updates)
SSR tutorials for firebase show how to create dynamic page with time-driven cache (not data-driven) and only use Hosting for static asset being added before the deployment.
res.set('Cache-Control', 'public, max-age=600, s-maxage=1200')
Plus i can't find any api to send rendered file to Hosting from a cloud function..?