0

I use a cronjob to call an http cloud function every day that updates a sitemap.xml inside cloud storage with dynamic data. Every time this file is updated, the token at the end of the url changes, making the old url unavailable to Google Search Console.

Is there a way to get a static url for a file that's repeatedly updated file in cloud storage?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
cerealex
  • 1,649
  • 4
  • 17
  • 37
  • Can you grab the URL using a firebase cloud function that simply redirects to the new URL? [cloud function url redirect](https://stackoverflow.com/questions/45890908/cloud-function-for-firebase-to-redirect-to-a-url) – James Poag Aug 23 '18 at 16:05
  • There are no permalinks in Cloud Storage to files that are continually updated. You'll need to construct a solution on your own, which depends on how your clients work. – Doug Stevenson Aug 23 '18 at 16:14
  • I guess I can build another function that checks for the current url through the admin sdk on redirect as James suggests... I just wanted to know if there was a simpler way to get a permalink before doing that. Thanks anyways! – cerealex Aug 23 '18 at 17:25

0 Answers0