Forum Discussion
adalan_1411
Nimbostratus
Aug 17, 2009HTTP Profile :: Vary Header Help
Not sure if this is the correct place for this, but I'm noticing what I would consider and abnormality in the way the VARY header is working. It seems to be adding a User-Agent component the vary hea...
hoolio
Cirrostratus
Aug 17, 2009I'm not too familiar with the Vary header and whether there is a good way to address this in the configuration. But if you want to remove everything including and after the first comma, you could use scan:
scan everything not a comma into precomma and the rest into ignore
scan [HTTP::header Vary] {%[^,]%s} precomma ignore
Update the Vary header value with the scan output
HTTP::header replace Vary $precomma
Else, getfield would allow you to do this without the intermediate variables:
Update the Vary header value with first field of the Vary header value, delimited by commas
HTTP::header replace Vary [getfield [HTTP::header Vary] "," 1]
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
