Setting Cache Headers in J2EE + Spring Envrionment

udcsite
udcsite used Ask the Experts™
on
We host a secure web application using Orion Application Server (similar to OC4J) + Spring.  We've recently been trying to tinker around with the application server's settings for how long resources should be cached before expiring, but changing this doesn't seem to have any effect.  Would this be something we would need to change on the deeper Spring/Java level?  Or would one potentially override the other?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
what should you want to cache ? whether is DB data ??

Author

Commented:
Just images like gifs and pngs served to the web browser

Looking for spots to set cache-control to public, etc.
Commented:
maybe org.springframework.web.servlet.mvc.WebContentInterceptor is what you're looking for. it enables you to set several cache headers and apply it to selected paths.

Author

Commented:
Thank you very much. A good solution, and still useful even though the question was asked weeks ago.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial