GCP App Engine Serving Old Versions of Static Files Instead of Updated Ones
I'm performance testing and I'm working with an scenario where my static files deployed to GCP App Engine are not updating after a new deployment. I have ensured that I increment the version number in my `app.yaml` file, but the static files continue to serve the old versions. This is particularly problematic as users are seeing outdated styles and scripts, which are critical for UI functionality. Here is the relevant part of my `app.yaml`: ```yaml runtime: python39 handlers: - url: /static static_dir: static/ - url: /.* script: auto ``` When I deploy using the command `gcloud app deploy app.yaml`, I see a successful deployment message, but some files in the `static` directory appear to be cached. I've also tried using the `--no-cache` flag during deployment with `gcloud app deploy --no-cache app.yaml`, but that hasn’t resolved the scenario. In my browser, I’ve tried hard-refreshing and clearing the cache, but the old files still continue. I’m using Google Chrome and have checked in incognito mode as well. Additionally, I’m not using any CDN or additional caching layers that might interfere with the file serving. I would appreciate any insights on how to ensure that the latest versions of static files are served after deployment. Is there a specific configuration or best practice I might be missing? Thanks in advance for your help! This is part of a larger service I'm building. Any suggestions would be helpful.