We’re using code like the following on our main index web page, per the ServiceStack docs:
<script async src="https://ga.jspm.io/npm:es-module-shims@1.6.3/dist/es-module-shims.js"></script><!--safari-->
<script type="importmap">
{
"imports": {
"@servicestack/client":"https://unpkg.com/@servicestack/client@2/dist/servicestack-client.min.mjs"
}
}
</script>
<script type="module">
import { JsonApiClient } from '@servicestack/client'
import { GetVersion } from '/types/mjs?IncludeTypes=GetVersion.*'
const client = JsonApiClient.create()
client.api(new GetVersion()).then(function (r) {
//console.log(r.succeeded);
document.getElementById('result').innerHTML = r.response.status;
});
</script>
Over the past few weeks, we’ve noticed fairly consistent short outages where the CDN minimized JS is not available. The outages usually only last a few minutes, typically less than 5 but sometimes longer.
In diagnosing the issue, I found that the actual URL being retrieved is https://unpkg.com/@servicestack/client@2.1.8/dist/servicestack-client.min.mjs, and during the outages the response is that there’s a problem with the SSL handshake. Putting that URL directly in a browser shows that there’s some type of problem with CloudFlare protection on Unpkg. Other Unpkg URLs seem to work fine, even during the outages; do you have any insight on what could be causing these outages to occur?