FIOS vs EC2 w/Windows (network performance) Just finished reading Outliers..
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

Sorry, the comment form is closed at this time.