Does Spring MVC support versioning of static assets (css, js and images ) by appending the last-modified-date to the asset file names which effectively serves, caches, and invalidates the assets automatically ?
Rails supports this by using the asset_tag helpers.
I want to add the last-modified-date attribute of a file as a query parameter to serve static assets from the server, so that if I modify the static files (css, js, images) I do not have to modify my code and cache invalidation can happen automatically.
thank you
Yes, check the spring MVC documentation, section 17.15.6 Configuring Serving of Resources
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With