3 ms·
>Is the AMP cache any different from any other CDN caching assets I'm not an expert but Google AMP is not a simple CDN cache. The Google-owned servers also p
by jasode 7y ago
>Is the AMP cache any different from any other CDN caching assets
I'm not an expert but Google AMP is not a simple CDN cache. The Google-owned servers also proxies API calls to whitelisted urls like approved ad networks and Google Analytics. (Expand all the triangles in the list: https://amp.dev/support/faq/platform-and-vendor-partners/ https://amp.dev/support/faq/platform-and-vendor-partners/)
A cache service like Cloudflare CDN doesn't do that. (Although there's an example of somebody trying Cloudflare's new "Workers" functionality to proxy an api call on the server side instead of the browser side: https://community.cloudflare.com/t/google-analytics-proxy-worker/90202 https://community.cloudflare.com/t/google-analytics-proxy-wo...)
For publishers that use ad networks, Google's AMP is a different value proposition from a typical CDN. Because Google's AMP has a different technical architecture, it solves a different problem than a CDN.
Yes, Cloudflare could conceivably add more functionality to their service to proxy ad network api calls like Google AMP but it wouldn't buy them as much of a speed boost because Cloudflare doesn't own/control the "google.com" domain that serves search results. It's "www.google.com" that has Google's trusted javascript code to preload AMP data that is executed on the user's web browser.
- gregable 7y agoThis is a misunderstanding. Browser requests to ad and analytics networks are never proxied by the AMP Cache. They are made directly from your browser to the vendors listed. You can verify this in network tools. The AMP Cache proxies: AMP Pages, images, fonts. That's pretty much it, since those are all that's needed for prerendering.