Skip to content

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

Closed

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

Activity

  1. spring-projects-issues commented on Apr 27, 2010

    @spring-projects-issues
    CollaboratorAuthor

    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.

  2. spring-projects-issues commented on Jul 27, 2010

    @spring-projects-issues
    CollaboratorAuthor

    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.

  3. added
    in: core
    type: task
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions