i'm using Google Cloud Bucket as CDN. When i upload an image to CDN, i set cache-control: public, max-age=31536000
(365 days). Then i want to replace that image by another one, but i don't know how to invalidate the old cache. I'm using Google Cloud PHP Client SDK https://github.com/googleapis/google-cloud-php.
I tried to delete the old image and upload a new image but it didn't work. I still get the old version.
Does anyone know about this?