Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Storage - Public object url e super slow updating

I have a bucket with READ permission to allUsers and it's working fine but the public url link https://storage.googleapis.com/example_bucket/example.png takes ages to update: if I change the image in storage for a different one with the same name, the bucket view shows the correct image as well as the not public image url https://storage.cloud.google.com/example_bucket/example.png however the public url shows the old image and it takes a long time to update. Could someone explain if this is normal or if I'm doing something wrong?

like image 668
mgshorta Avatar asked Sep 12 '25 11:09

mgshorta


1 Answers

I was coming across this same issue while serving up profile images for my users. I fixed this by chaining ?ignoreCache=1 onto the public url.

like image 147
Bronson Avatar answered Sep 15 '25 20:09

Bronson