Google-AMP-Cache-URL-Builder

The Google AMP cache URL generator creates a suitable URL in AMP cache format from the normal URL of any subpage, any website.

Options
:

Build AMP-Cache-URL


http

This URL can be used to call up the AMPHTML version of a website stored in the Google AMP cache if the corresponding page has already been indexed and saved by Google.

Multiple URLs can be inserted in the URL input field for URL bulk processing to create a Google AMPHTML cache URL for multiple URLs at the same time. To convert many URLs to Google AMP cache URLs in bulk, the URLs must be entered in the input field separated by line breaks. I.e. Google-AMP-Cache-URLs-Converter may only be inserted one URL per line.


Advertisement

The AMP cache URL format


link

If possible, the Google AMP cache creates a subdomain for all AMP pages that are on the same domain.

First the domain of the website is IDN (ponycode) converted to UTF-8 . The cache server replaces:

  • every - (1 hyphen) with - (2 hyphens)
  • every . (1 point) with - (1 hyphen)
  • Example: amp-cloud.de would become
    amp--cloud-de.cdn.ampproject.org

The converted domain is the host address of the Google AMP cache URL. In the next step, the full cache URL is put together, the host address being expanded by the following parts:

  • an indicator that classifies the file type
    • a /c/ for AMPHTML files
    • a /i/ for pictures
    • a /r/ for fonts
  • an indicator that activates loading via TSL (https)
    • a /s/ to activate
  • the original URL of the website without HTTP scheme

Example of a URL in Google AMP cache URL format:


beenhere

Exemplary original URL:

  • https://amp-cloud.de/amp-cache-url-generator.php?test=123&abc=hallo+welt

Theoretical AMP cache URL:

  • https://amp--cloud-de.cdn.ampproject.org/c/s/amp-cloud.de/amp-cache-url-generator.php?abc=hallo%2Bwelt&test=123

What is the Google AMP cache?


dns

Part of the acceleration of web pages in Google AMP format is due to the automatic saving in the server cache of Google search . This means that the AMP versions of a website, not as usual from the web server of the website, but directly from the search results of the Google search, from one of the Google servers (the Google AMP cache server) loaded, which usually allow significantly faster loading times.

I.e. Google indexes and stores a version of the AMP page on its own server, under a separate AMP cache server URL, which is created according to a specific pattern. With this URL, in the AMP cache URL format , you can call up and view the current AMPHTML version, which is currently stored in the AMP cache of the Google search engine. - More information about the Google AMP cache.


Advertisement