Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Google Cloud Storage Permissions:

after removing the Public Access from an uploaded file and clearing all cache, then copying the URL link (and file name) to the browser, the file still shows on the public side. Are there TTL’s or other factors keeping that image publicly available? I’m not succeeding in consistently removing public permissions from files just via the removal of the permissions for that file.


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.

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?