Does Spring MVC support versioning of static assets (css, js and images)

Does Spring MVC support versioning of static assets (css, js, and images) by adding the last modified date to asset file names that efficiently serve, cache, and automatically invalidate assets?

Rails supports this with asset_tag helpers.

I want to add the last-modified-date attribute of the file as a request parameter for serving static assets from the server, so if I change static files (css, js, images), I do not need to modify my code, and cache invalidation can happen automatically .

Thank you

+4
source share
1 answer

Yes, check spring MVC documentation , section 17.15.6 Configuring Serving of Resources

+3
source

Source: https://habr.com/ru/post/1336571/


All Articles