How to Handle iOS 6 POST Caching Bug in C# Web Service

Last week many users were changing to iOS 6 and one of our products running on jQuery Mobile started to behave odd. Service started to return old values and all. Some Google search reveled that it is a bug in iOS 6.

You can tackle this issue in C# Web Services by disabling cache.

public WebService()
{
    HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
    ...
}
Did you enjoy this article?
Signup today and receive free updates straight in your inbox. We will never share or sell your email address.

Leave a Reply