-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
compress json and html in addition to js and css
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ | |
<xsl:template match="undertow:subsystem/undertow:server/undertow:host"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
<filter-ref name="gzipFilter" predicate="path-suffix['.css'] or path-suffix['.js']"/> | ||
<filter-ref name="gzipFilter" predicate="regex[pattern='(?:application/javascript|text/css|text/html|application/json)(;.*)?', value=%{{o,Content-Type}}, full-match=true]"/> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jmazzitelli
Author
Contributor
|
||
</xsl:copy> | ||
</xsl:template> | ||
|
||
|
1 comment
on commit b1afa9d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to test this with curl or whatever just make sure to set on the
Requests Headers: Accept-Encoding:gzip, deflate
and you should receive back in the
Response headers: Content-Encoding: gzip
Readability in the first version was much better :-p