V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
githere
V2EX  ›  程序员

cloudflare 推出的 AMP Real URL 大家用了吗?请问页面加载速度提升了多少?

  •  
  •   githere · 2019-04-24 19:12:56 +08:00 · 2839 次点击
    这是一个创建于 1821 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天登陆 cloudflare 发现 speed 页面增加了 AMP Real URL,不理解其中的官方解释,请问有哪位小伙伴已经亲身体验了,说说其中的原理?

    官方解释:

    Display your site ’ s actual URL on your AMP pages, instead of the traditional Google AMP cache URL. This feature is being rolled out in stages. Enable now and you will be notified when it is activated on your site.

    7 条回复    2019-04-25 11:43:30 +08:00
    mgrddsj
        1
    mgrddsj  
       2019-04-24 20:10:14 +08:00
    没有体验过,说一下对解释的理解。
    就是 Google 搜索结果里面有的站是有 "AMP" 的(有个小闪电在搜索结果旁边,仅手机),类似于阅读器视图( Google 在云端生成好了你的网页的简略版)。打开后一般是 Google 的缓存 URL, Cloudflare 这个服务会把 Google 的 URL 换成你自己的 URL.
    darmau
        2
    darmau  
       2019-04-24 20:15:52 +08:00 via iPhone
    @mgrddsj amp 不是谷歌生成的吧,还是网站自己负责的。
    比如我的博客
    https://www.darmau.com/the-new-africa/

    加个 amp 就是 amp 页面了:
    https://www.darmau.com/the-new-africa/amp
    githere
        3
    githere  
    OP
       2019-04-24 21:11:49 +08:00
    @darmau 我还以为在 cloudflare 直接勾选就自动可以了,现在发现参考你的页面 url,我添加/ amp 返回的是 404
    darmau
        4
    darmau  
       2019-04-24 22:31:09 +08:00 via iPhone
    @githere 要网站支持。我用的是 ghost,可以选择打开 ghost。
    不管怎么说,amp 页面不在谷歌服务器上
    starFeeling
        5
    starFeeling  
       2019-04-24 23:34:00 +08:00
    @darmau 咦,大佬你的博客用什么搭的
    junjieyuanxiling
        6
    junjieyuanxiling  
       2019-04-25 08:29:54 +08:00 via Android
    @mgrddsj 谷歌的搜索结果是免费 CDN,不是谷歌生成 amp。
    NG6
        7
    NG6  
       2019-04-25 11:43:30 +08:00
    @darmau 大佬博客这么搭的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1581 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.