1 Answers
Yes, there is a sort of "caching time". You might have already been aware that GCP has a very broad network around the world and it heavily utilizes caching system (CDN and similarities).
The documentation says:
By default, publicly readable objects are served with a Cache-Control header that allows the objects to be cached for 3600 seconds. If you need to ensure that updates become visible immediately, you should set the Cache-Control metadata for the objects to Cache-Control:private, max-age=0, no-transform.
So you have to set the metadata of object like that to remove the object from global caching system immediately when publicRead
is revoked :).
thanks vm, makes sense, it took about 10m before the view was no longer there, better than the 60m in the docs at least for this small cache.
Side note: I uploade the file (jpg) enabled pubic access via Permissions – adding Group:AllUsers:Reader line to the permissions, then Saved. I could then view the file publically but when removing those permissions, the file still is viewable publically.