CSS File Not Updating on Deploy (Google AppEngine)

后端 未结 12 1861
既然无缘
既然无缘 2020-12-09 03:39

I pushed a new version of my website, but now the CSS and static images are not deploying properly.

Here is the messed up page: http://www.gaiagps.com

Appeng

12条回答
  •  既然无缘
    2020-12-09 03:51

    From the docs for the standard environment for Pyhton: static_cache_expiration.

    After a file is transmitted with a given expiration time, there is generally no way to clear it out of intermediate caches, even if the user clears their own browser cache. Re-deploying a new version of the app will not reset any caches. Therefore, if you ever plan to modify a static file, it should have a short (less than one hour) expiration time. In most cases, the default 10-minute expiration time is appropriate.

提交回复
热议问题