System.Net.Cache.HttpRequestCacheValidator.CreateCacheHeaders C# (CSharp) Method

CreateCacheHeaders() private method

private CreateCacheHeaders ( bool ignoreFirstString ) : void
ignoreFirstString bool
return void
        private void CreateCacheHeaders(bool ignoreFirstString)
        {

            if (CacheHeaders == null)
                CacheHeaders = new WebHeaderCollection();

            if (CacheEntry.EntryMetadata == null || CacheEntry.EntryMetadata.Count == 0)
            {
                if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_http_response_header));
                return;
            }

            string s = ParseNameValues(CacheHeaders, CacheEntry.EntryMetadata, ignoreFirstString?1:0);
            if (s != null)
            {
                if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_http_header_parse_error, s));
                CacheHeaders.Clear();
            }
        }
        //