Hi, I succesfully developed a @Provider for Velocity templates.
However, I am not sure how to control caching headers for template results.
My current solution does this:
        @Context
        HttpServletResponse res;
public Viewable get(...) {
   ...
   this.res.setHeader("Cache-Control", "no-cache");
   return new Viewable("", this);
}
It works, but it is not very elegant. 
Is there a more natural way to do this?
I notices that there is no way for cache control within the @Provider.
Regards,
Max
-- 
View this message in context: http://n2.nabble.com/Templates-and-Caching-tp4414716p4414716.html
Sent from the Jersey mailing list archive at Nabble.com.