I am using a WebContentInterceptor to enable long lived cache of static resources. We have them under 3 different paths though, css, js, and images.
Is there a way to share the interceptor bean between multiple mappings without putting them all under a shared path?
I'd need more information to confirm that the setup is how I presume; but, have you tried...
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/site/*" />
<mvc:mapping path="/add/*" />
<mvc:mapping path="/edit" />
<bean class="com.test.MyInterceptor" />
</mvc:interceptor>
</mvc:interceptors>
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