boolean html = isHTML();
charset(); // set it
if (html) {
if (Configuration.addCharacterFilter()) addFilter(new CharacterFilter(charset));
if (Configuration.addJSModifierFilter()) addFilter(new JSModifierFilter(charset));
if (Configuration.addHTMLModifierFilter()) addFilter(new HTMLModifierFilter(charset, isXHTML(), isSSL));
addFilter(new NoCacheFilter());
} else if (isJs()) {
if (Configuration.addCharacterFilter()) addFilter(new CharacterFilter(charset));
if (Configuration.addJSModifierFilter()) addFilter(new JSModifierFilter(charset));
// Removing NoCacheFilter because it slows down pages a lot.