Skip to content

Add support for public/private Cache-Control HTTP header [SPR-7129] #11789

Closed
@spring-projects-issues

Description

@spring-projects-issues

Zoran Regvart opened SPR-7129 and commented

As per The HTTP 1.1 RFC (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1) Cache-Control HTTP header can have keywords public or private specified.

One would use the public keyword for cacheable resources that are behind HTTP authentication -- a common case would be static javascript or image files that not accessible to general public. An even stronger case could be made for JSON/XML data intended for an AJAX client behind HTTP authentication that still wants to cache the response.

The private keyword is intended in cases where privacy of the cached data should be enforced -- for example for cached profile pages of the user.

These improvements would benefit applications that want comply with the recent trends in web site optimizations, such as the ones outlined in the best practices for caching section of Google's page speed project (http://code.google.com/speed/page-speed/docs/caching.html).


Affects: 3.0.2

This issue is a sub-task of #16413

Issue Links:

Referenced from: commits 38f32e3

11 votes, 23 watchers

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions