title: simple way to make all my ajax responses uncacheable
body: <p>I'm maintaining an application that uses Jersey to create a RESTful API. </p>
  
  <p>I want to set the response header on all of them to turn off caching. </p>
  
  <p>I can do this by brute force replacing every </p>
  
  <pre><code>Response.ok().build()
  </code></pre>
  
  <p>with</p>
  
  <pre><code>Response.ok().cacheControl(noCache).build()
  </code></pre>
  
  <p>where <code>noCache</code> is defined earlier as </p>
  
  <pre><code>CacheControl noCache = new CacheControl();
  noCache.setNoCache(true);
  </code></pre>
  
  <p>(and making a comparable change for all other Response objects I build) but making this change at all 100+ places that there is a return value seems ham-handed. Is there a simple way to set a preference for all responses that I produce?</p>