title: asmx WebMethod caching on POST request in asp.net
body: <p>I am using jQuery to get back some JSON data from the server. I am using a POST verb, but even after setting the WebMethod CacheDuration attribute, the JSON doesn't get cached.</p>
  
  <p>I checked the response headers with firebug and the Cache-Control is still set to no-cache.
  How can i cache these request on the client and avoid the server to be hit every time.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After reading this <a href="http://weblogs.asp.net/scottgu/archive/2007/04/04/json-hijacking-and-how-asp-net-ajax-1-0-mitigates-these-attacks.aspx" rel="nofollow noreferrer">post</a> from scottGu I thought it would have been safe to go on to use a POST request. Does his post not apply to the kind of operation i would be trying to do ? (getting data from the server without modifying it). In fact after changing the verb to GET, i am not even getting to the web service ...</p>