2 Answers
Hello! One thing to be aware of is that it can sometimes take a little bit of time for permissions changes like these to propagate, so do retry this a number of minutes later. Also, it might help to retry this in a fresh incognito session to reduce the chance that you’re getting impacted by any local caching (though you could conceivably still be affected by something like corporate caching, however unlikely).
Also, FWIW, I cannot currently access that object link you posted–but seemingly because you’ve since cleaned up the bucket, eh?
I hope this helps!
Mattias
=D Same thing here, after I remove public access I still can access it without the permission. As Mattias just said, standard cache-control metadata is set to 3600. A good way to check on this is use chrome Developers tools. Go to Network -> Click your object -> Click in Header. You will find something like this: Cache-Control: (public, max-age=3600)
To test the theory as I didn’t want to wait for cache to expires, I created other object, but before set it public I went to "Edit Metadata" and in Cache-Control I set the value: no-cache,max-age=0
In this case, I was able to see permissions take effect right away! =D
Hope it helps!!!!
Maybe be its a good thing to discuss in this tread that local cache was not the problem here. In this case, even when I ignore local cache I was able to get the file. Can ACLoudGuru team can explain this in a more robust way? Maybe thats a good opportunity to draw Data Flow???
Regards
yes, I’ve indeed cleaned things up since. was merely checking if anybody else has come across the same behaviour.
I am experiencing the same. In my case, I created my bucket as "regional" so the changes shouldn’t take long to propagate. Still 3 minutes after making the change, removing public access, I can still access it. If this is just a matter of time, I do find it a very long time…
It took about 30 minutes to apply the changes
Hey, thanks for the info, Matthieu! Did you try that in a separate browser/situation to try to bypass caching? Google notes: "By default, publicly readable objects are served with a Cache-Control header that allows the objects to be cached for 3600 seconds." — https://cloud.google.com/storage/docs/access-control/lists