Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Apr 27, 2010 · 2 comments
Closed

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

spring-projects-issues opened this issue Apr 27, 2010 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression)

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 27, 2010

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

@spring-projects-issues
Copy link
Collaborator Author

Keith Donald commented

Minification should be pluggable. YUICompressor (http://developer.yahoo.com/yui/compressor/) provides both JS and CSS minification and is Java-based. Could be a suitable default implementation.

@spring-projects-issues
Copy link
Collaborator Author

Jeremy Grelle commented

First pass under consideration for 3.0.4 will be limited to runtime-only gzip compression. Minification options and disk-based caching will be reconsidered for 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression)
Projects
None yet
Development

No branches or pull requests

2 participants