I am running 2 Sitecore CD servers, the servers are load balanced on Azure and we have Azure CDN as well.
The strange thing is that 2 lines of codes are randomly missing from the page response we get back from the CDN.
<meta name="VIcurrentDateTime" content="636881125141092538" />
<script type="text/javascript" src="/layouts/system/VisitorIdentification.js"></script>
I have checked through about 30 unique page load on the CDN and made sure that the X-Cache:Hit is not in the response. About 60% of the pages were missing the 2 lines of code. These 2 lines were generated by @Html.Sitecore().VisitorIdentification()
.
My initial thought was that perhaps one of the two CD servers is acting weird. But I tried loading 30 pages each on both CD servers, both CD servers return a perfect response 100% of the time without anything missing. Both CD servers also have an identical layout.aspx with @Html.Sitecore().VisitorIdentification()
in the Head section as well.
So, I am guessing it is related to the Azure CDN.
Does anyone have experience with this? Please help.