예제 #1
0
        private static bool ForceIE10ReloadToUseAppcacheIfNotAlreadyDone(HttpApplication httpApplication, HttpContext httpContext)
        {
            bool   result = false;
            string text;
            string text2;

            RequestDispatcher.GetIE10ForceAppcacheCookies(httpContext, out text, out text2);
            if (text != "1" && (string.IsNullOrEmpty(text) || text2 != text))
            {
                string cookieValue = string.IsNullOrEmpty(text2) ? "1" : text2;
                RequestDispatcher.AddAlreadyForcedCookie(httpContext, cookieValue);
                RequestDispatcher.SendJavascriptReload(httpApplication, httpContext);
                result = true;
            }
            return(result);
        }