Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Now do the following from a terminal command-line session:

$ git clone https://github.com/ampproject/ampbench.git
$ cd ampbench
$ npm update
$ npm install
$ nodemon
# or:
$ npm start
Expand Down
8 changes: 8 additions & 0 deletions amp-story/linter/caches.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"cacheDomain": "cdn.cloudflare.com",
"updateCacheApiDomainSuffix": "amp.cloudflare.com",
"thirdPartyFrameDomainSuffix": "cloudflareamp.net"
},
{
"id": "bing",
"name": "Bing AMP Cache",
"docs": "https://www.bing.com/webmaster/help/bing-amp-cache-bc1c884c",
"cacheDomain": "bing-amp.com",
"updateCacheApiDomainSuffix": "bing-amp.com",
"thirdPartyFrameDomainSuffix": "bing-amp.net"
}
]
}
4 changes: 4 additions & 0 deletions ampbench_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,10 @@ function check_google_amp_cache(url, callback) {
});
}

/* Note that this check may produce different results on different machines; in
some cases google.com sends an ~10k header, which causes node to blow up with an
HPE_HEADER_OVERFLOW error, since the default max appears to be ~8k. See
https://stackoverflow.com/a/35330480/11543. */
function check_google_amp_viewer(url, callback) {

const url_viewer = make_url_to_google_amp_viewer(url);
Expand Down
Loading