Dispatcher enable TTL not working | Community
Skip to main content
Level 2
Sep 22, 2017 11:27 AM UTC
Solved

Dispatcher enable TTL not working

I enabled TTL in dispatcher any file and also set an Expires header to be sent back in the target page

I can see the 'Expires' header in response when i access the page in publisher

but when I access the page using webserver / dispatcher URL, that header is not seen in the response anymore.

Is it removed by the webserver when returning response to the browser?

also even after making this change, no TTL related file is created in the cache folder (besides the cached file for the accessed page)

Is something else to be done to enable this?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Sep 25, 2017 5:28 AM UTC

Not sure if the keywords are case-independent. Try "enableTTL".

Jörg

4 replies

joerghoh
joerghohAccepted solution
Employee
Sep 25, 2017 5:28 AM UTC

Not sure if the keywords are case-independent. Try "enableTTL".

Jörg

Translate
Level 2
Sep 24, 2017 4:35 PM UTC

Thank you . I am getting error in the log that "enablettl property is not recognized". My dispatcher version is 4.2.2.

Translate
joerghoh
Employee
Sep 22, 2017 4:39 PM UTC

The TTL feature only controls the ttl of the cache entry in the dispatcher. You should enable the dispatcher header caching feature to carry on the expiration information you added to the page while rendering it on publish.

I found a nice explanation of it at [1], especially "Response header caching" and "Time based cache invalidation".

Jörg

[1] AEM Dispatcher 4.1.11 - (not) just yet another release

Translate
smacdonald2008
Level 10
Sep 22, 2017 4:15 PM UTC

See here - maybe this will help: Dispatcher TTL

Translate