Closed tmarly closed 2 years ago
@tmarly thanks for the contribution.
i have also added a issue for cache invalidation https://github.com/sulu/SuluHeadlessBundle/issues/108 but thats not part of this PR
Closed in favour of https://github.com/sulu/SuluHeadlessBundle/pull/112 Thanks a lot for your contribution 😊
The HeadlessWebsiteController adds cache-control directives. This commit add cache-control for snippet and navigation headless controllers.
It's rather simple, I initially tried to use the CacheLifetimeEnhancer but the code is much more complex (cf. attached patch). alternative-with-enhancer.txt