![]() The AMP Cache acts as a reverse proxy, therefore, when the platform accesses the page, it results in the page being cached automatically. For example, Google Search crawls content for any identified and valid AMP pages, the content is added to the Google AMP Cache.Ĭache URL request: Platforms can specifically request an AMP page by using the AMP Cache URL format. Platform discovery: Platforms discover your AMP content via the or tag and cache the content. There are a few ways that your AMP page can end up in an AMP Cache: Mobile apps can link to cached AMP content via the URL (see Google's AMP URL API) or by cross-origin XHRs in Progressive Web Apps (learn more in Embed & use AMP as a data source).īy using the AMP format, you are making your content available to be cached by AMP Caches. Who requests cached AMP pages?Ĭached AMP pages are accessed by platforms (like Google Search, Google News, and Bing) and mobile apps. This makes the document technically invalid AMP, while not impacting the functionality of the document. Should you desire not to have your document cached, one option is to remove the amp attribute from the HTML tag. Publishing a valid AMP document automatically opts it into cache delivery. Can I opt out of caching?Ĭaching is a core part of the AMP ecosystem. What AMP Is NOT As we get a lot of different questions about this new project, it’s important to make a few things clear. It works as a proxy based CDN and uses HTTP 2.0 origin. To learn about the strict guidelines for creating AMP Caches, see the AMP Cache Guidelines. Google AMP Cache is AMP’s CDN that ensures even faster delivery of content. However, this model allows platforms to provide their users with predictable load performance and among other things allows them to ensure required security and privacy invariants during AMP’s pre-rendering phase. This is an inversion of the typical model where content delivery is the responsibility of the publisher. How do I choose an AMP Cache?Īs a publisher, you don't choose an AMP Cache, it's actually the platform that links to your content that chooses the AMP Cache (if any) to use. What is Google AMP Google’s Accelerated Mobile Pages are a set of performance focused restrictions and limitations on HTML, CSS, and JavaScript that maximize performance and allow Google to distribute optimized content using their CDN. To learn about creating AMP Caches, see the AMP Cache Guidelines. Watch this video to learn why AMP Caches exist.Ĭurrently, there are two AMP Cache providers:ĪMP is an open ecosystem and the AMP Project actively encourages the development of more AMP Caches. Learn more about AMP Caches in the YouTube video below, or in the Why AMP Caches Exist blog post. You can exclude AMP pages/posts from other AMP plugins by setting the /(.AMP email documents are exempt from the AMP cache. How to exclude AMP pages from other plugins to prevent issues Any other JavaScript or optimization could break the AMP markup, and thus, it’s automatically excluded. Why are WP Rocket’s advanced optimizations not applied on AMP pages?ĪMP pages have their own specific JavaScript components and do not allow any custom JavaScript nor anything that’s not included in their components’ catalog. However, WP Rocket will deactivate these incompatible features: Minification, DNS Prefetch, LazyLoad, Optimize CSS delivery (Load CSS Asynchronously and Remove Unused CSS), Load JavaScript deferred, Delay JavaScript Execution, Google Fonts Optimization, and the CDN rewrites will work for the images only. WP Rocket’s page cache feature will work, and WP Rocket will automatically cache the AMP posts with the ?amp query string. WP AMP (Accelerated Mobile Pages) plugin developers told us they have made their plugin compatible with WP Rocket.AMP for WP – Accelerated Mobile Pages plugin handled the compatibility with WP Rocket on their side.Google's Web Stories plugin is compatible with WP Rocket.Note: Any AMP plugin based on Automattic's solution should be compatible too. Select the Transitional Template Mode instead: In this case, page caching works but other optimizations are not applied. When the Standard Template Mode is selected, your site uses a single theme and there is a single version of your content. Automattic’s AMP plugin is compatible with WP Rocket.WP Rocket has built-in, automatic compatibility with: Initially, it was aimed for mobile but now it has been extended to all kind of devices. How to exclude AMP pages from other plugins to prevent issuesĪMP (Accelerated Mobile Pages) is Google's open-source project built to speed up websites’ loading time.Why are WP Rocket’s advanced optimizations not applied on AMP pages?. ![]() Using AMP plugins with WP Rocket In this Article
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |