Dispatcher enable ttl removes headers from response
Hello,
I have a dispatcher configuration with
/enableTTL "1"
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,
for example I have an svg icon under my client library /etc.clientlibs/my-lib/resources/icon.svg 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.
I noticed that I can fix this by extending the /headres section in the /cache configuration
/cache
{
...
/enableTTL "1"
/rules
{
# Rules
}
/invalidate
{
# ...
}
/headers
{
# with this header content type is present in browser, without it it's lost for resources cached along with .ttl file
"Content-Type"
}
}
Is this a bug or am I missing something in the configuration? I can not see anything on that matter under https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en
I am using Dispatcher with AEM 6.5.9 and Windows IIS
Thanks,
Bartek