Originally posted by Jamie Williams:
...
But I am concerned about one thing - does this cause the jsp pages to recompile every time they are requested?
It shouldn't.
I was trying to figure out why I don't have thise problem, and realized it's because I almost always have to bounce Tomcat when I change stuff anyway.
I don't think Tomcat's actually caching the CSS, but from the looks of it, your browser is. Normally, you'd
want to cache CSS and JavaScript for performance reasons - just not while you're debugging the stuff.
I think your problem on the server side is that when a webapp is updated
in situ there's a polling interval (adjustable, I believe) for changes in the content and until that interval expires, Tomcat will continue to serve up the stale content instead of your updates. Combine that with browser caching and I can see where you'd become very annoyed.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.