Nice tutorial! One question, is well known that Vue changes some files when you make a new build. On firebase you can specify that Cache-Control: no-cache so the user doesn't have to clear his owen cache to get new files. Is there a way to specify this on Cloud Run? Thanks!
Cloud Run lets you set cache headers like normal in your Node/Express apps, for example: "res.setHeader('Cache-Control', 'no-cache')". I usually put that in an Express middleware that goes before the express.static middleware is added to the app. However, every new build will generate Javascript bundles with new hashes in their file names, so caching is less of a concern. Consider setting "no-cache" only for index.html, as that file name stays constant between builds.
Happy to hear you found the video useful! If you run a search on TH-cam for "Run your Angular app on Google Cloud" you will see the video we released last week on that topic.
Subscribe to Google Cloud Tech → goo.gle/GoogleCloudTech
Lovely cat 😻 This is a good tutorial for those who is new to Cloud Run and well covering frequently used Google Cloud services 😊
20 dollars for enabling a custom domain, lol nice joke
Loved it! Thank you!
Happy to hear you found it useful!
Nice tutorial! One question, is well known that Vue changes some files when you make a new build. On firebase you can specify that Cache-Control: no-cache so the user doesn't have to clear his owen cache to get new files. Is there a way to specify this on Cloud Run? Thanks!
Cloud Run lets you set cache headers like normal in your Node/Express apps, for example: "res.setHeader('Cache-Control', 'no-cache')". I usually put that in an Express middleware that goes before the express.static middleware is added to the app.
However, every new build will generate Javascript bundles with new hashes in their file names, so caching is less of a concern. Consider setting "no-cache" only for index.html, as that file name stays constant between builds.
Thank for your tips and I ask about load balancer fix cost of 20 dollars you pay it in addition to the cost of the domain name provider?
Yes, that's correct.
Very useful, thank you (I use Angular or plain jQuery though but useful)
Happy to hear you found the video useful! If you run a search on TH-cam for "Run your Angular app on Google Cloud" you will see the video we released last week on that topic.
How you get my app I build this app some time ago as well as JSON
May the Lord Bless You ❤
❤ Jey sree ram 🎉
i get this error ERROR: (gcloud.run.deploy) Build failed; check build logs for details
Are there any errors in the log? (Go to console.cloud.google.com, click the top left hamburger menu, click Logging, click Log Explorer)