Title: Caching removes https form src url&#8217;s in AMP pages
Last modified: July 14, 2018

---

# Caching removes https form src url’s in AMP pages

 *  [gleysen](https://wordpress.org/support/users/gleysen/)
 * (@gleysen)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/caching-removes-https-form-src-urls-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)

 *  [Davide Prevosto](https://wordpress.org/support/users/daweb/)
 * (@daweb)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/caching-removes-https-form-src-urls-in-amp-pages/#post-10495158)
 * I have the same issue here.
 *  [neilgee](https://wordpress.org/support/users/neilgee/)
 * (@neilgee)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/caching-removes-https-form-src-urls-in-amp-pages/#post-10584305)
 * Ditto
 *  [thompsonpaul](https://wordpress.org/support/users/thompsonpaul/)
 * (@thompsonpaul)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/caching-removes-https-form-src-urls-in-amp-pages/#post-10626506)
 * Same behaviour causes issues with Google Maps.

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.

 * ![](https://ps.w.org/swift-performance-lite/assets/icon-256x256.jpg?rev=2388229)
 * [Swift Performance Lite](https://wordpress.org/plugins/swift-performance-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/swift-performance-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/swift-performance-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swift-performance-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swift-performance-lite/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [thompsonpaul](https://wordpress.org/support/users/thompsonpaul/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/caching-removes-https-form-src-urls-in-amp-pages/#post-10626506)
 * Status: not resolved