Skip to content

Conversation

@dbu
Copy link
Contributor

@dbu dbu commented Apr 6, 2016

fix #279

rfc6648 says to not prefix custom headers with x-. this PR removes all x- prefixes from default header names we use in this library.

X-Symfony-Cache is done by symfony, not by us.

Question: Is this a good idea and makes the library cleaner, or a pedantic change that is an unnecessary BC break and leads to tons of confusion? Upgrading applications have to also change all their VCL or nginx configuration or will end with broken systems.

@dbu
Copy link
Contributor Author

dbu commented Apr 9, 2016

@ddeboer seems i missed to adjust something, but what do you think in general, do we want to do this? i notice that i kind of like a prefix to see which headers are standard and which are done by us... but the rfc seems to say we should do it like this.

@dbu
Copy link
Contributor Author

dbu commented Apr 30, 2016

@ddeboer ping

@dbu
Copy link
Contributor Author

dbu commented Jun 20, 2016

ping @ddeboer

@dbu dbu force-pushed the drop-x-prefix-from-headers branch from 2838814 to b62f99c Compare August 7, 2016 19:07
@TomasVotruba
Copy link

TomasVotruba commented Aug 7, 2016

Looks fine! Would that be a BC break, so aiming for next mayor release?

@dbu
Copy link
Contributor Author

dbu commented Aug 8, 2016

@TomasVotruba yes, this is a PR against master which will be 2.0. current stable versions are 1.x

@TomasVotruba
Copy link

Allright then

@dbu dbu modified the milestone: 2.0 Aug 24, 2016
@dbu
Copy link
Contributor Author

dbu commented Aug 25, 2016

may i ask you for your opinion @Tobion @lsmith77 ?

Question: Is this a good idea and makes the library cleaner, or a pedantic change that is an unnecessary BC break and leads to tons of confusion? Upgrading applications have to also change all their VCL or nginx configuration or will end with broken systems.

@lsmith77
Copy link
Member

In general the RFC to deprecate "-X" prefix makes it clear that they talk about "new standards"
https://tools.ietf.org/html/rfc6648

ie. they do not say that existing (defacto) standards need to be updated but just that when defining new standards one should avoid the "-x" prefix.

So I would say its not necessary to push people away from "-x" in currently working scenarios.

@dbu
Copy link
Contributor Author

dbu commented Oct 17, 2016

@lsmith77 thanks for this input. i think the discussion started when we discussed why our prefixes are X- and not something like FOS- . but at that point, i think i will simply drop this. i committed the very few general cleanups that where included in this PR to master.

@dbu dbu closed this Oct 17, 2016
@dbu dbu deleted the drop-x-prefix-from-headers branch October 17, 2016 13:13
@dbu dbu mentioned this pull request Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove x- from our headers

4 participants