From ab38c099749d5607de5a6ffe7e4aab7f647db59c Mon Sep 17 00:00:00 2001 From: honeybadgerdontcare Date: Mon, 5 Jun 2017 17:32:00 -0700 Subject: [PATCH] Additional cache urls (#9733) --- validator/chromeextension/content_script.js | 4 +++- validator/chromeextension/manifest.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/validator/chromeextension/content_script.js b/validator/chromeextension/content_script.js index 315104d6796f1..8c6b06f597853 100644 --- a/validator/chromeextension/content_script.js +++ b/validator/chromeextension/content_script.js @@ -19,7 +19,9 @@ globals.amphtmlRegex = new RegExp('(^\s*)amphtml(\s*$)'); globals.ampCaches = [ { 'getAmpHref': function() { - if (window.location.pathname.startsWith('/c/s')) { + if (window.location.pathname.startsWith('/a/s') || + window.location.pathname.startsWith('/c/s') || + window.location.pathname.startsWith('/v/s')) { return 'https://' + window.location.pathname.slice(5); } else if (window.location.pathname.startsWith('/c')) { return 'http://' + window.location.pathname.slice(3); diff --git a/validator/chromeextension/manifest.json b/validator/chromeextension/manifest.json index 95ed70cb3beed..205a0de4fb550 100644 --- a/validator/chromeextension/manifest.json +++ b/validator/chromeextension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "1.1.1", + "version": "1.1.2", "default_locale": "en", "description": "__MSG_extensionDescription__", "icons": {