getResourceSettings().setDisableGZipCompression(true);
// enable toggable XHTML validation
if(DEVELOPMENT.equalsIgnoreCase(getConfigurationType())) {
getMarkupSettings().setStripWicketTags(true);
HtmlValidationResponseFilter htmlvalidator =
new GeoServerHTMLValidatorResponseFilter();
htmlvalidator.setIgnoreAutocomplete(true);
htmlvalidator.setIgnoreKnownWicketBugs(true);
getRequestCycleSettings().addResponseFilter(htmlvalidator);
}
getDebugSettings().setAjaxDebugModeEnabled(false);
getApplicationSettings().setPageExpiredErrorPage(GeoServerExpiredPage.class);