You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public string RenderCachedRawContent(string bundleName)
{
var cacheKey = CachePrefix + "_raw_" + bundleName;
var output = rawContentCache.GetContent(cacheKey);
if (output == null)
{
bundleState = rawContentBundleStateCache[cacheKey];
if (bundleState == null)
{
throw new InvalidOperationException(string.Format("No cached bundle state named {0} was found.", bundleName));
}
output = RenderRawContent(bundleName);
}
return output;
}
The method falls when trying to fetch the output from the dictionary which does not contain the key as yet.
May be I use the method not correctly.
Could you explain how to?
Or there is a bug.
Thank you!
The text was updated successfully, but these errors were encountered:
Yes, guessed you'd answer this way. You see, I've got a task to realize this https://developers.google.com/speed/docs/insights/PrioritizeVisibleContent)
In short, it requires that part of the CSS is loaded into the header directly.
So in general the RenderRawContent suits me well, but not cached. So I tried the RenderCachedRawContent and it falls.
The method falls when trying to fetch the output from the dictionary which does not contain the key as yet.
May be I use the method not correctly.
Could you explain how to?
Or there is a bug.
Thank you!
The text was updated successfully, but these errors were encountered: