MCPcopy Create free account
hub / github.com/ampproject/amphtml / isAmpCacheUrl

Function isAmpCacheUrl

validator/cpp/engine/wasm/validator.js:150–152  ·  view source on GitHub ↗

* Checks if the given URL is an AMP cache URL * @param {string} url * @return {boolean}

(url)

Source from the content-addressed store, hash-verified

148 * @return {boolean}
149 */
150function isAmpCacheUrl(url) {
151 return uriUtils.getDomain(url) === 'cdn.ampproject.org';
152}
153
154/**
155 * Renders one line of error output.

Callers 1

validateUrlAndLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected