Jan 132010
I came across a scenario where I did not want JSON to be cached, the following code did the trick:
public JsonResult ListJson()
{
Response.CacheControl = "no-cache";
Response.Cache.SetETag(((ShortGuid)Guid.NewGuid()).ToString());
FYI I’m using ShortGuid from Dave Transom
Follow me on Twitter