Fixed caching issue in Thymeleaf configuration