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 caching of compressed resources [SPR-7401] #12059

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

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 27, 2010

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

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