Skip to content

Send the Vary header by default #1638

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

Merged
merged 5 commits into from
May 2, 2025
Merged

Conversation

pfefferle
Copy link
Member

This PR changes the default behaviour of the Vary header from opt-in to opt-out.

There are still way too many problems with caching plugins and the plugin should work out of the box without having to tweak too much.

/cc @snarfed

Proposed changes:

  • Set the default of the Vary header setting to true

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

  • Go to '..'

Changelog entry

  • Automatically create a changelog entry from the details below.
Changelog Entry Details

Significance

  • Patch
  • Minor
  • Major

Type

  • Added - for new features
  • Changed - for changes in existing functionality
  • Deprecated - for soon-to-be removed features
  • Removed - for now removed features
  • Fixed - for any bug fixes
  • Security - in case of vulnerabilities

Message

Improve compatibility with third-party caching plugins by sending a Vary header.

This PR changes the default behaviour of the `Vary` header from opt-in to opt-out.

There are still way too many problems with caching plugins and the plugin should work out of the box without having to tweak too much.

/cc @snarfed
@pfefferle pfefferle self-assigned this May 2, 2025
@pfefferle pfefferle requested a review from obenland May 2, 2025 06:55
pfefferle added a commit that referenced this pull request May 2, 2025
Change the default behaviour of the plugin based on the caching plugins that are installed.

This PR is an extension to #1639 and #1638
@pfefferle pfefferle merged commit ba39fab into trunk May 2, 2025
11 checks passed
@pfefferle pfefferle deleted the change/always-send-vary-header branch May 2, 2025 13:02
pfefferle added a commit that referenced this pull request May 6, 2025
* Change default settings based on caching behaviour

Change the default behaviour of the plugin based on the caching plugins that are installed.

This PR is an extension to #1639 and #1638

* fix phpcs issues

* seems to not properly work with the plugin

so let's wait for the first that needs it.

* fix whitespaces

* Add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants