Closed cedmax closed 2 months ago
Hi @cedmax , sorry for my late response. I'm not familiar with these URLs with "relative" protocol, is there any realistic & sensible use case that justifies using them over https
?
As far as I know (from what I read this same evening), SEO experts and security experts are advising against it because of privacy and latency issues associated to it.
To be fair I don't know if it's a recommended practice, but it's a valid notation for a remote file. If it's not supported I think it should at least be called out in the documentation 😊
Please don't take these as the only examples, but there's plenty of articles like this which point to using cdn resources in this way
https://dy.dev/docs/implement-script
@cedmax I hope it helps 😄 https://github.com/kindspells/astro-shield/releases/tag/1.4.0
Resources referenced with a relative protocol (
//
notation, like the example below) lead to an error, as the library fails to recognise them as remote assets.leads to
whilst ideally it should be treated like if it was