Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Cloud Run Cache Problem

In June 21 I changed my website to a new framework, in past I've used Vuejs and now I'm using React. But my cache never invalidate, I can access my new site only in browsers that never enter in old version or using CTRL + SHIFT + R (But on next refresh the old site backs).

I was looking in Chrome Dev tools network tool and notice response header still send date atribute as June 20, others clients has this same problem. How can I resolve this? Without go in browser settings and clean manually my cache, it's inviable cause older users has this problem too...

I also tried flush DNS Cache with this tool https://developers.google.com/speed/public-dns/cache

It's running in Google Cloud Run

TRPAQ.png




0 1 2,050
1 REPLY 1

matthsena; Hi.  GCP Storage has cache-control options I have worked on.  Check out: cloud.google.com/storage/docs/metadata  and cloud.google.com/cdn/docs/caching   I have used No-store and public max-age= for storage to address version control accessed by browsers.  Max-age=3600 is the default; I have tested settings as low as 800s to observe cache behavior.  I am a skills boost beginner in GCP; so I don’t know if this applicable to your situation. thanks; pfrankwicz.