Expand my Community achievements bar.

SOLVED

Dispatcher enable TTL not working

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

Jörg

View solution in original post

4 Replies

Avatar

Employee Advisor

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

Avatar

Level 2

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

Avatar

Correct answer by
Employee Advisor

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

Jörg