部署后需要一些时间来反映更改 [英] After deploy taking time to reflect changes

查看:46
本文介绍了部署后需要一些时间来反映更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个内置ReactJs的项目.我正在使用s3和CloudFront进行部署.每当我在部署后部署代码时都遇到了一个问题,这需要太多的时间来反映更改.有时,我必须手动清除浏览器cookie以获取最新更改.我是否需要配置S3或CloudFront设置?

I have a project which is built-in ReactJs. and I am using s3 and CloudFront for deployment. I am facing an issue whenever I deploy code after deployment it takes too much time to reflect changes. sometimes I have to manually clear browser cookies for the latest changes. Do I need to configure S3 or CloudFront settings?

推荐答案

请按照以下步骤操作:

  1. 转到cloudfront:
  2. 使对象无效
  3. 创建条目/*

参考资料: https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serving-outdated-content-s3/

这篇关于部署后需要一些时间来反映更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆