Skip to content

VersionResourceResolver should add ETag headers when resolving resources [SPR-13382] #17963

Closed

Description

@spring-projects-issues

Brian Clozel opened SPR-13382 and commented

VersionStrategy and VersionResourceResolver can resolve resources using version strings.
Those resources are then served without using this version information to set the ETag header.

The VersionResourceResolver should by default add this header value as this is valuable for HTTP clients. It should also provide an optional configuration setting to disable that behavior.


Affects: 4.2 GA

Issue Links:

Referenced from: commits 190eb6a

Activity

  1. spring-projects-issues commented on Aug 25, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Brian Clozel commented

    As of this commit, the ETag header is automatically added in HTTP responses when a VersionResourceResolver is used.

  2. spring-projects-issues commented on Dec 23, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Christian Köberl commented

    It seems that this just works on the first request - because the second (and further) request are usually handled via the CachingResourceResolver.

  3. spring-projects-issues commented on Dec 23, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Brian Clozel commented

    Thanks Christian Köberl, I've created #18390!

  4. added
    type: enhancement
    in: web
    on Jan 11, 2019
  5. added this to the 4.2.1 milestone 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: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions