I made a bucket on Google Cloud Storage and filled it with images for a project and I want to enable browser caching for them. As far as I know, this just means I need to disable bucket policy only, add "allUsers" as a 'Storage Object Viewer' role and add the 'cache-control: public, max-age=x' header to the object metadata for each image. I've done those steps, but every time I make a request for the image, either from my app or just the browser, I get back the response header 'cache-control: no-cache, no-store, max-age=0, must-revalidate'. Is there a step I'm missing here?
As you can see, the images are public:
And the metadata is set like this:
And yet, the response is always this: