Inline JavaScript file strings trigger CDN replacement
-
Hi there,
We have an inline minified script that has a section like the following:
e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";If we enable relative paths redirect then we get the following:
e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"https://subdomain.oursite.com/analytics.min.js";Our settings look like the following:
URL:
https://subdomain.oursite.com
Include:wp-content,wp-includes
Exclusions:.php
Relative Path: Ticked
Https: TickedI would assume that with relative paths on it’d still only capture things which had the includes before it?
Thanks
The topic ‘Inline JavaScript file strings trigger CDN replacement’ is closed to new replies.