V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shuson
0.21D

AWS 上的 CloudFront 怎么保持和 S3 Origin 同步

  •  
  •   shuson · Apr 14, 2015 · 3807 views
    This topic created in 4034 days ago, the information mentioned may be changed or developed.

    问题:s3上更新之后,cloudfront instance很久不能同步更新
    已经尝试解决方法:使用aws推荐的invalidation,发现依然不能及时同步,而且invalidation还需要手动添加record

    求过来人指点

    4 replies    2015-04-14 19:36:09 +08:00
    HowardMei
        1
    HowardMei  
       Apr 14, 2015
    访问一遍啊,后面加上?visit=randomstr不就好了
    shuson
        2
    shuson  
    OP
       Apr 14, 2015
    @HowardMei 另外aws docu有讲说用 带着version的文件,可是我只更新了index.html这个文件,名字是固定的。

    所以你说的加上query str,是指加到cloudfront instance的url后面么
    shuson
        3
    shuson  
    OP
       Apr 14, 2015
    @HowardMei 今天遇到好多坡县的。幸会
    akira
        4
    akira  
       Apr 14, 2015
    1楼的意思应该是, 例如自己浏览器直接访问 http://www.xxx.com/index.html?a=1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2726 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 13:03 · PVG 21:03 · LAX 06:03 · JFK 09:03
    ♥ Do have faith in what you're doing.