spring-framework / org.springframework.web.servlet.resource / GzipResourceResolver

GzipResourceResolver

open class GzipResourceResolver : AbstractResourceResolver

A ResourceResolver that delegates to the chain to locate a resource and then attempts to find a variation with the ".gz" extension.

The resolver gets involved only if the "Accept-Encoding" request header contains the value "gzip" indicating the client accepts gzipped responses.

Author
Jeremy Grelle

Author
Rossen Stoyanchev

Author
Sam Brannen

Since
4.1

Constructors

<init>

GzipResourceResolver()

A ResourceResolver that delegates to the chain to locate a resource and then attempts to find a variation with the ".gz" extension.

The resolver gets involved only if the "Accept-Encoding" request header contains the value "gzip" indicating the client accepts gzipped responses.