Commit 18840257 authored by Matija Obreza's avatar Matija Obreza
Browse files

HTTP: Use gzip encoding on /sitemap*, /api* and /html*

parent 06ca65f2
......@@ -148,6 +148,8 @@ public class WebInitializer extends AbstractAnnotationConfigDispatcherServletIni
// GZip filter configuration
final FilterRegistration.Dynamic gZIPFilter = servletContext.addFilter("gZIPFilter", GzipFilter.class);
gZIPFilter.addMappingForUrlPatterns(null, false, "/html/*");
gZIPFilter.addMappingForUrlPatterns(null, false, "/sitemap*");
gZIPFilter.addMappingForUrlPatterns(null, false, "/api/*");
}
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment