App Engine: Static Files Not Updating on Deploy

前端 未结 4 1755
不思量自难忘°
不思量自难忘° 2021-02-14 10:12

I pushed an HTML static file containing an Angular SPA as catch-all handler for my custom domain with this settings:

- url: /(api|activate|associate|c|close_fb|         


        
4条回答
  •  终归单人心
    2021-02-14 10:50

    When performing changes in static files in an App Engine application, changes will not be available immediately, due to cache, as you already imagined. The cache in Google Cloud cannot be manually flushed, so instead I would recommend you to change the expiration time to a shorter period (by default it is 10 minutes) if you want to test how it works, and later setting an appropriate expiration time according to your requirements.

    Bear in mind that you can change the static cache expiration time both for all static files or for just the ones you choose, just by setting the proper element in the app.yaml file.

提交回复
热议问题