I have a static site hosted on google cloud storage. I set it up per the same methodology described here:
https://cloud.google.com/storage/docs/hosting-static-website
I have purchased a domain, and the website is running smoothly on it at this point. I am still in the process of making changes to the content of the site. My current workflow is to edit the files (for example, index.html) locally on my windows machine, and then upload the modified files to my storage bucket using the online console/ storage browser at https://console.cloud.google.com/storage/browser, making sure to set them as public links. I then navigate to my website using chrome to see what changes have occurred.
Most of the time, when I do this, my site appears to be unchanged! I can even inspect the source files for the site and discover that they do not match the files that are currently in my storage bucket. If I wait some time, varying from minutes to hours, the website does eventually change. I would like it to be the case that it changes instantly so I can test changes quickly (I cannot test locally because the framework I am using does not function without running a localhost, which I cannot do). How do I do make my cloud storage static site update quickly?
My best guess for the reasons this might happen are pretty scattershot. Is it that it takes some amount of time for various gcp servers around the world to sync together? Would it have anything to do with the TTL settings or other settings on my domain name registrar? (namecheap, currently using defaults).
While it's not impossible for the propagation of the changes inside the GCS infrastructure to account for the behaviour you mention it's rather unlikely.
It's more likely you're looking at a cache effect. Which can happen:
?ignoreCache=1
, see https://stackoverflow.com/a/37124554/4495081, orIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With