<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RUM injection failure when Azure Front Door caching enabled in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/231732#M5531</link>
    <description>&lt;P&gt;Hello Anna, manual injection was the only method that worked. Using Oneagent and automated injection of Javascript did not work with Cache enabled on Azure Front Door(s).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 11:13:18 GMT</pubDate>
    <dc:creator>GregOReilly</dc:creator>
    <dc:date>2023-12-13T11:13:18Z</dc:date>
    <item>
      <title>RUM injection failure when Azure Front Door caching enabled</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/225046#M5330</link>
      <description>&lt;P&gt;We have found an issue when using kuberneres+OneAgent+RUM injection with some applications. Support helped us to eliminate possible causes and to narrow in on caching at the AFD level.&lt;/P&gt;
&lt;P&gt;When caching is enabled, RUM injection does not work. If we disable caching on AFD, RUM Injection works every time.&lt;/P&gt;
&lt;P&gt;To circumvent this issue, we've resorted to manual JavaScript injection.&lt;/P&gt;
&lt;P&gt;Has anyone come across an alternative solution for this challenge?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 10:55:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/225046#M5330</guid>
      <dc:creator>GregOReilly</dc:creator>
      <dc:date>2023-12-13T10:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: RUM injection failure when Azure Front Door caching enabled</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/231729#M5530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47954"&gt;@GregOReilly&lt;/a&gt;, were you able to find an alternative solution for this issue? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 11:05:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/231729#M5530</guid>
      <dc:creator>Ana_Kuzmenchuk</dc:creator>
      <dc:date>2023-12-13T11:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: RUM injection failure when Azure Front Door caching enabled</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/231732#M5531</link>
      <description>&lt;P&gt;Hello Anna, manual injection was the only method that worked. Using Oneagent and automated injection of Javascript did not work with Cache enabled on Azure Front Door(s).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 11:13:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/231732#M5531</guid>
      <dc:creator>GregOReilly</dc:creator>
      <dc:date>2023-12-13T11:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: RUM injection failure when Azure Front Door caching enabled</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/273483#M6822</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We had this same issue and we seem to have solved it by:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Application settings in Dynatrace under "Injection" -&amp;gt; "Automatic injection", specify "/dynatrace/" as the&amp;nbsp;&lt;SPAN&gt;location for JavaScript library file.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In Azure Front Door, create a rule to disable caching for any request path that starts with "/dynatrace/".&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 25 Mar 2025 16:11:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/273483#M6822</guid>
      <dc:creator>tom_desair</dc:creator>
      <dc:date>2025-03-25T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: RUM injection failure when Azure Front Door caching enabled</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/281495#M7010</link>
      <description>&lt;P&gt;Thanks for raising this, Greg.&lt;/P&gt;&lt;P&gt;When you say "RUM injection does not work", I interpret that to mean the RUM JavaScript snippet is not injected into the page at all. Based on the setup, I suspect this is due to an unfavorable caching policy: the page is likely being served from the edge cache for an extended period, so the request never reaches the origin — and the OneAgent never gets a chance to inject the snippet.&lt;/P&gt;&lt;P&gt;The fact that manual insertion worked could be due to a few reasons:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A cache purge during deployment of the new version (which included the manually inserted snippet), or&lt;/LI&gt;&lt;LI&gt;A cache-busting mechanism like asset versioning.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Tom mentioned they had a similar issue, but the solution he described only works if the RUM JavaScript snippet was already injected, and only the request for the RUM monitoring code itself did not reach the origin. So his case shows that RUM injection can work with Azure Front Door, and the issue here is likely more about caching behavior than a fundamental incompatibility.&lt;/P&gt;&lt;P&gt;To me, this sounds like a classic CDN-related scenario we've seen before:&amp;nbsp;The OneAgent can't inject as long as the page is served from the edge. Except for waiting for the cache to expire, the only solutions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Purging the cache manually, and&lt;/LI&gt;&lt;LI&gt;Reducing cache durations going forward to avoid long-lived stale content.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;Greg, please correct me if I misunderstood what you meant by "RUM injection does not work."&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 07:10:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-injection-failure-when-Azure-Front-Door-caching-enabled/m-p/281495#M7010</guid>
      <dc:creator>MargitM</dc:creator>
      <dc:date>2025-07-15T07:10:54Z</dc:date>
    </item>
  </channel>
</rss>

