GzipFilter
From Resin 3.0
(Difference between revisions)
Line 25: | Line 25: | ||
!Attribute||Meaning||Default | !Attribute||Meaning||Default | ||
|- | |- | ||
+ | |allow-content-type||adds a content-type which should be compressed||all | ||
|use-vary||Set the HTTP Vary header for Gzip requests||true | |use-vary||Set the HTTP Vary header for Gzip requests||true | ||
|- | |- |
Revision as of 00:45, 3 February 2006
GzipFilter requires Resin Professional
resin-web.xml
<web-app xmlns="http://caucho.com/ns/resin"> <filter filter-name="gzip" filter-class="com.caucho.filters.GzipFilter"> <init> <use-vary>true</use-vary> </init> </filter> <filter-mapping filter-name="gzip"> <url-pattern> <exclude-pattern>*.pdf</exclude-pattern> <include-pattern>/*</include-pattern> </url-pattern> </filter-mapping> </web-app>
init tags
Attribute | Meaning | Default | |||
---|---|---|---|---|---|
allow-content-type | adds a content-type which should be compressed | all | use-vary | Set the HTTP Vary header for Gzip requests | true |
no-cache | Disable caching of GZip response | false | |||
embed-error-in-output | Embeds any thrown exceptions in the gzip output | false |