Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
18840257
Commit
18840257
authored
Mar 13, 2022
by
Matija Obreza
Browse files
HTTP: Use gzip encoding on /sitemap*, /api* and /html*
parent
06ca65f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/spring/config/WebInitializer.java
View file @
18840257
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment