Skip to content

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

Closed

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

Activity

  1. 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