<?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: Dispatcher enable ttl removes headers from response in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445737#M127456</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17468940"&gt;&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be possible that the following events might have occurred in sequence:&lt;BR /&gt;1. First time you enabled TTL, it cached the file with empty headers, as your /headers section is empty and then the subsequent requests also received the same cached header file. See the below from the documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;/headers&lt;SPAN&gt;&amp;nbsp;property allows you to define the HTTP header types that are going to be cached by the Dispatcher. &lt;EM&gt;On the first request to an uncached resource, all headers matching one of the configured values (see the configuration sample below) are stored in a separate file&lt;/EM&gt;, next to the cache file. On subsequent requests to the cached resource, the stored headers are added to the response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Added the Content-Type in the /headers section which might have refreshed the cached headers file with the Content-Type header value and then the subsequent requests receiving the header.&lt;/P&gt;&lt;P&gt;3. Disabled the TTL, the header file cached in step2 is being returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 19:03:59 GMT</pubDate>
    <dc:creator>Fanindra_Surat</dc:creator>
    <dc:date>2022-03-24T19:03:59Z</dc:date>
    <item>
      <title>Dispatcher enable ttl removes headers from response</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445661#M127432</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dispatcher configuration with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/enableTTL "1"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the caching is done based on stat files, but some resources needs to be cached using TTL. When I have a resource that is cached with ttl I noticed that it affects the response headers that are send to the browser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example I have an svg icon under my client library &lt;STRONG&gt;/etc.clientlibs/my-lib/resources/icon.svg&amp;nbsp;&lt;/STRONG&gt;when I have have TTL disabled I can se that Content-Type response header is present for this resource and browser correctly displays the icon. When I add the TTL "1" then the response header is gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that I can fix this by extending the /headres section in the /cache configuration&lt;/P&gt;&lt;PRE&gt;/cache&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;     ...&lt;BR /&gt;     /enableTTL "1"&lt;BR /&gt;&lt;BR /&gt;    /rules&lt;BR /&gt;    {&lt;BR /&gt;      # Rules&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    /invalidate&lt;BR /&gt;    {&lt;BR /&gt;        # ...&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    /headers&lt;BR /&gt;    {&lt;BR /&gt;        # with this header content type is present in browser, without it it's lost for resources cached along with .ttl file&lt;BR /&gt;        "Content-Type"&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug or am I missing something in the configuration? I can not see anything on that matter under&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en" target="_blank"&gt;https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Dispatcher with AEM 6.5.9 and Windows IIS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:32:18 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445661#M127432</guid>
      <dc:creator>bartek_887</dc:creator>
      <dc:date>2022-03-24T13:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher enable ttl removes headers from response</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445737#M127456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17468940"&gt;&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be possible that the following events might have occurred in sequence:&lt;BR /&gt;1. First time you enabled TTL, it cached the file with empty headers, as your /headers section is empty and then the subsequent requests also received the same cached header file. See the below from the documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;/headers&lt;SPAN&gt;&amp;nbsp;property allows you to define the HTTP header types that are going to be cached by the Dispatcher. &lt;EM&gt;On the first request to an uncached resource, all headers matching one of the configured values (see the configuration sample below) are stored in a separate file&lt;/EM&gt;, next to the cache file. On subsequent requests to the cached resource, the stored headers are added to the response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Added the Content-Type in the /headers section which might have refreshed the cached headers file with the Content-Type header value and then the subsequent requests receiving the header.&lt;/P&gt;&lt;P&gt;3. Disabled the TTL, the header file cached in step2 is being returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 19:03:59 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445737#M127456</guid>
      <dc:creator>Fanindra_Surat</dc:creator>
      <dc:date>2022-03-24T19:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher enable ttl removes headers from response</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445801#M127481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this on empty cache. So&lt;/P&gt;&lt;P&gt;1. I cleared cache&lt;/P&gt;&lt;P&gt;2. Enabled TTL&lt;/P&gt;&lt;P&gt;3. Requested resource (SVG)&lt;/P&gt;&lt;P&gt;4. It get cached without any headers (no .h file next to cached file)&lt;/P&gt;&lt;P&gt;5. Response &lt;STRONG&gt;was missing&lt;/STRONG&gt; content type header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;1. I cleared cache&lt;/P&gt;&lt;P&gt;2. Disabled TTL&lt;/P&gt;&lt;P&gt;3. Requested resource (SVG)&lt;/P&gt;&lt;P&gt;4. It get cached without any headers (no .h file next to cached file)&lt;/P&gt;&lt;P&gt;5. Response &lt;STRONG&gt;was not&lt;/STRONG&gt; &lt;STRONG&gt;missing&lt;/STRONG&gt; content type header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make it work with ttl enabled I had to add headers section to the dispatcher config, then:&lt;/P&gt;&lt;P&gt;1. I cleared cache&lt;/P&gt;&lt;P&gt;2. Enabled TTL&lt;/P&gt;&lt;P&gt;3. Requested resource (SVG)&lt;/P&gt;&lt;P&gt;4. It get cached with headers (.h file next to cached file was created)&lt;/P&gt;&lt;P&gt;5. Response &lt;STRONG&gt;was not&lt;/STRONG&gt; missing content type header&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 08:53:18 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/445801#M127481</guid>
      <dc:creator>bartek_887</dc:creator>
      <dc:date>2022-03-25T08:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher enable ttl removes headers from response</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/446177#M127628</link>
      <description>&lt;P&gt;Agree, it should be added to the documentation, that the TTL-based caching is a superset of the header-caching, and therefor it requires this feature also being configured properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you log a ticket with support and request this to be added to the documentation?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 18:07:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/446177#M127628</guid>
      <dc:creator>Jörg_Hoh</dc:creator>
      <dc:date>2022-03-29T18:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher enable ttl removes headers from response</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/446293#M127660</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a github ticket for dispatcher documentation page. Thanks &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@31B4D6D7B3510763F3CBB2AAB7997408/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/AdobeDocs/experience-manager-dispatcher.en/issues/48" target="_blank" rel="noopener"&gt;https://github.com/AdobeDocs/experience-manager-dispatcher.en/issues/48&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 12:19:29 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-enable-ttl-removes-headers-from-response/m-p/446293#M127660</guid>
      <dc:creator>bartek_887</dc:creator>
      <dc:date>2022-03-30T12:19:29Z</dc:date>
    </item>
  </channel>
</rss>

