Martin, I've tried the exact code line for line and it isn't working for me.
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
// Init the header tags
tags.Text = HeaderTags;
tags.Text = tags.Text.Replace("<meta http-equiv=\"cache-control\" content=\"no-cache\" />", "");
tags.Text = tags.Text.Replace(" type=\"text/css\"", "");
tags.Text = tags.Text.Replace(" type=\"image/x-icon\"", "");
if (CMSContext.ViewMode == ViewModeEnum.Wireframe)
{
CSSHelper.RegisterWireframesMode(this);
}
}
When I view my source, it still shows the <meta> tag and all the other items.