Skip to content

Add support for compressing resources [SPR-7140] #11799

Closed
@spring-projects-issues

Description

@spring-projects-issues

Keith Donald opened SPR-7140 and commented

As a user, I would like static resources of text/* mime-types compressed by default. All text resources should be gzipped. JavaScript and CSS files should be minified before they are gzipped. There should be the option to disable runtime compression, since you don't want this on in development mode and it's possible some environments will compress as part of their build process.

Implementation option #1:

  • Compress each time a resource is requested.

Implementation option #2:

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

Affects: 3.0.2

This issue is a sub-task of #11776

Issue Links:

2 votes, 1 watchers

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