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 no-transform cache control header [SPR-6834] #11500

spring-issuemaster opened this issue Feb 12, 2010 · 1 comment


None yet
2 participants
Copy link

commented Feb 12, 2010

Kenny MacLeod opened SPR-6834 and commented

The HTTP 1.1 RFC defines an optional "no-transform" value for the Cache-Control response header:

Mobile web sites are generally recommended to set this header to prevent transcoders from mangling the markup.

Can we have support for this header value added to WebContentGenerator? It already has support for no-store and no-cache, so it would seem a logical place for it to go.

Affects: 3.0 GA

This issue is a sub-task of #16413

Referenced from: commits 38f32e3

1 votes, 4 watchers


This comment has been minimized.

Copy link
Collaborator Author

commented Mar 23, 2015

Brian Clozel commented

A new CacheControl builder class has been created; it allows more flexible caching strategies for the "Cache-Control" header, including the no-transform directive.

The WebContentGenerator class (and other places in the framwork as well) support CacheControl like this:

CacheControl cc = CacheControl.maxAge(30, TimeUnit.DAYS).noTransform();

See #16413 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.