简体   繁体   English

我已经在 AWS amplify 上部署了新的 React 代码,但网站上仍然看不到更改?? 如何解决这个问题?

[英]I have deployed the new React code on AWS amplify but the changes are still not visible on the website?? How to solve this issue?

On AWS the pipeline is created build and deploy.

How to solve this issue, any solution like how to clear cache automatically as the new version of code get deployed and changes would be visible.如何解决这个问题,任何解决方案,例如如何在新版本的代码部署时自动清除缓存并且更改都是可见的。

If you are allowing amplify to deploy from your repo, a new addition provides cache invalidation... this is not cache in your browser, but is cache at the cdn level for your entire app.如果您允许从您的 repo 部署 amplify,则新增内容会提供缓存失效...这不是您的浏览器中的缓存,而是整个应用程序的 cdn 级别的缓存。

I am having the same problem, but I deploy manually by uploading 'dist' folder.我有同样的问题,但我通过上传“dist”文件夹手动部署。 Can't find help for this on aws or interwebs.在 aws 或互联网上找不到这方面的帮助。

https://community.spiceworks.com/topic/2454371-aws-amplify-console-now-supports-instant-cdn-cache-invalidation https://community.spiceworks.com/topic/2454371-aws-amplify-console-now-supports-instant-cdn-cache-invalidation

https://aws.amazon.com/about-aws/whats-new/2019/03/aws-amplify-console-adds-support-for-instant-cdn-cache-invalidation-and-delta-deployments/#:~:text=AWS%20Amplify%20Console%20Adds%20Support%20for%20Instant%20CDN%20Cache%20Invalidation%20and%20Delta%20Deployments,-Posted%20On%3A%20Mar&text=The%20Amplify%20Console%20now%20supports,content%20delivery%20network%20(CDN)%20caching https://aws.amazon.com/about-aws/whats-new/2019/03/aws-amplify-console-adds-support-for-instant-cdn-cache-invalidation-and-delta-deployments/#: ~:text=AWS%20Amplify%20Console%20Adds%20Support%20for%20Instant%20CDN%20Cache%20Invalidation%20and%20Delta%20Deployments,-Posted%20On%3A%20Mar&text=%20Amplify%20Console%20now%20supports,content %20delivery%20network%20(CDN)%20缓存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM