Skip to content

Add support for caching of compressed resources [SPR-7401] #12059

@spring-projects-issues

Description

@spring-projects-issues

Jeremy Grelle opened SPR-7401 and commented

The ResourceHttpRequestHandler adds runtime gzip compression of text/* mime-types by default. For more efficient serving of these resources, the following additional approaches should be considered:

Implementation options #1:

  • Allow the user to specify a naming pattern for pre-compressed versions of their resources, such as '*.gz', and serve those in preference to runtime compression.

Implementation option #2:

  • Compress the first time a resource is requested. After that, add the compressed version to a user-specified disk-level cache location. Future requests for the resource are served from the cache.

Affects: 3.0.4

This issue is a sub-task of #12058

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions