We have an Episerver DXC application that is working ok in most geolocations but is failing to serve https://dl.episerver.net/13.0.5/epi-util/find.js in China.
Episerver Support are investigating, but have not yet found a solution to fix the issue, which I suspect is related to "the great firewall". So I wanted to share this with everyone and see if there are any other ways to resolve it.
Identifying the issue
We used https://www.dotcom-tools.com/website-speed-test.aspx to test website load times from various geolocations and identified that https://dl.episerver.net/13.0.5/epi-util/find.js was failing to load in China.
I'm not aware of many tools around that test China, if you know any others please let me know.
What we have tried so far
Episerver Support recommended we try the following, but unfortunately, it hasn't resolved the issue;
<assemblyIdentity name="EPiServer.Find" publicKeyToken="8fe83dea738b45b7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-184.108.40.206" newVersion="220.127.116.11" />
Add the following line to the configSections area of the web.config:
<section name="episerver.find.ui" type="EPiServer.Find.UI.FindUIConfiguration, EPiServer.Find.UI" />
Add the following line just prior to the <sysytem.web> section, and include the Find version determined in Step 1 (use the first three version places):
<episerver.find.ui clientSideResourceBaseUrl="https://dl.episerver.net/12.7.1" />
What I'm thinking to try next
I'm wondering if we can serve this JS from our domain, rather than the client request it from dl.episever.net
Can anyone recommend this approach?
Many locked down (with no or limited internet access) sites with a find implementation use the approach described in
I.e. hosting the resources (js/css) on the site domain and pointing the clientSideResourceBaseUrl here.
Thanks Daniel, that's exactly what I was looking for. I'll follow up / confirm once it's deployed.
Good news, this approach resolved the issue;http://dmytroduk.com/techblog/customizing-how-statistics-tracking-scripts-are-loaded-on-pages-when-using-episerver-find/
You can see in the screenshot below that the JS file is now served in China directly from our own domain rather than from https://dl.episerver.net/13.0.5/epi-util/find.js.