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

Function isAmpCache

validator/js/chromeextension/content_script.js:73–81  ·  view source on GitHub ↗

* Determine if the page is from an AMP Cache. * * @return {boolean} * @private

()

Source from the content-addressed store, hash-verified

71 * @private
72 */
73function isAmpCache() {
74 for (const index in globals.ampCaches) {
75 const ampCache = globals.ampCaches[index];
76 if (ampCache.isAmpCache()) {
77 return true;
78 }
79 }
80 return false;
81}
82
83/**
84 * Determine if the page is an AMP page.

Callers 1

content_script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected