title: How to prevent .NET JSON feeds from being cached
body: <p>I have created simple .aspx page which queries a database for some live data and then returns a JSONP (or at last a JSONP-like) feed of <code>Content-Type application/json; charset=utf-8</code></p>
  
  <p>Here is the format of the output, more or less:</p>
  
  <pre><code>jsonp1307643489579([
    ["12345","Text Here","99999","More Text Here","True","False","7/31","1"...],
    ["12345","Text Here","99999","More Text There",...]
  ]
  </code></pre>
  
  <p>Then comes a JQuery .getJSON call:</p>
  
  <pre><code>var url = "myURL.aspx?id=123&amp;callBack=?";
  $.getJSON(url, null, function(msg) { etc etc.
  </code></pre>
  
  <p>It all works fine except for the following.   In my development environment and on my local server, fresh data come back live every time.  But on the production web server, the data stubbornly caches until I recycle the IIS application pool (!)  </p>
  
  <p>Some things I have tried without success.</p>
  
  <p>1/ cache: false in ajaxSetup didn't work.</p>
  
  <p>2/ Turned off output caching in the web.config.</p>
  
  <p>2a/ OutputCache Location="None" in the aspx page declarations doesn't do it.</p>
  
  <p>3/ Added random unique querystring data to the .getJSON(url) call.  Seeing as how we are appending a unique callback param to each call, I guess this was already happening anyway. </p>
  
  <p>Any idea why my web server is holding on to these cached application/JSON files?</p>
  
  <p><strong>EDIT:</strong>  i am viewing the actual .aspx feeds as they come down from the web server, and they are cached there.  So to my understanding, it's a web server caching issue and not necessarily a JQUERY caching issue.  </p>