Spring Boot 2 + Thymeleaf - Versioning static assets for client side cache busting

1 · Sunit Katkar · Sept. 11, 2018, 8:10 p.m.
In a post written some time ago, I showed how you can prevent caching of static resources (javascript and css) in a legacy Spring MVC application. Recently I needed to use the same technique to prevent browser side caching of javascript and css files in a Spring Boot 2 project using Thymeleaf as the view layer. Purpose of this blog postThis blog post is about sharing a simple way to make your Spring Boot application serve versioned static resources like javascript and css files so that client si...