Skip to content

Add support for no-transform cache control header [SPR-6834] #11500

Closed

Description

@spring-projects-issues

Kenny MacLeod opened SPR-6834 and commented

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

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.5

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

Activity

  1. spring-projects-issues commented on Mar 23, 2015

    @spring-projects-issues
    CollaboratorAuthor

    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();
    generator.setCacheControl(cc);

    See #16413 for more details.

  2. added
    in: web
    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: webtype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions