• 请不要在回答技术问题时复制粘贴 AI 生成的内容
githere
V2EX  ›  程序员

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

  •  
  •   githere · Apr 24, 2019 · 3805 views
    This topic created in 2608 days ago, the information mentioned may be changed or developed.

    今天登陆 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 replies    2019-04-25 11:43:30 +08:00
    mgrddsj
        1
    mgrddsj  
       Apr 24, 2019
    没有体验过,说一下对解释的理解。
    就是 Google 搜索结果里面有的站是有 "AMP" 的(有个小闪电在搜索结果旁边,仅手机),类似于阅读器视图( Google 在云端生成好了你的网页的简略版)。打开后一般是 Google 的缓存 URL, Cloudflare 这个服务会把 Google 的 URL 换成你自己的 URL.
    darmau
        2
    darmau  
       Apr 24, 2019 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
       Apr 24, 2019
    @darmau 我还以为在 cloudflare 直接勾选就自动可以了,现在发现参考你的页面 url,我添加/ amp 返回的是 404
    darmau
        4
    darmau  
       Apr 24, 2019 via iPhone
    @githere 要网站支持。我用的是 ghost,可以选择打开 ghost。
    不管怎么说,amp 页面不在谷歌服务器上
    starFeeling
        5
    starFeeling  
       Apr 24, 2019
    @darmau 咦,大佬你的博客用什么搭的
    junjieyuanxiling
        6
    junjieyuanxiling  
       Apr 25, 2019 via Android
    @mgrddsj 谷歌的搜索结果是免费 CDN,不是谷歌生成 amp。
    NG6
        7
    NG6  
       Apr 25, 2019
    @darmau 大佬博客这么搭的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1397 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 16:46 · PVG 00:46 · LAX 09:46 · JFK 12:46
    ♥ Do have faith in what you're doing.