Skip to content

Incorrect example to remove Vary header? #714

@edwilde

Description

@edwilde

Pages affected

Description

I am not sure, but it looks like the example of how to disable the Vary header is outdated.

The example is

SilverStripe\Control\HTTP:
  vary: ""

But I can see this class has no such attribute.

I think the correct configuration is

SilverStripe\Control\Middleware\HTTPCacheControlMiddleware:
  defaultVary:
    'X-Forwarded-Protocol': false

Validations

  • Check that there isn't already an issue that reports the same problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions