Caching removes https form src url’s in AMP pages
-
For some reason, the cachining module removes https:// from certain URL’s and changes it to // instead. This causes problems for AMP pages and generates an error with Google: “User-authored JavaScript found on page: The attribute ‘src’ in tag ‘amp-iframe extension .js script’ is set to an invalid value”
In my AMP page, it change this:
src='https://cdn.ampproject.org/v0/amp-analytics-0.1.js
to this:
src='//cdn.ampproject.org/v0/amp-analytics-0.1.js
I solved this by excluding /amp/ pages from caching, but I would prefer that I don’t need to do this…
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Caching removes https form src url’s in AMP pages’ is closed to new replies.