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

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

spring-projects-issues opened this issue Jul 27, 2010 · 0 comments
Assignees
Labels

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants