Skip to content
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

[WIP][POC] Add custom xkeys to response #25

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

adriendupuis
Copy link
Owner

@adriendupuis adriendupuis commented Apr 15, 2020

  • Can a custom xkey be added to the default ones?
  • X-Location-Id header is deprecated; what happens when is still used?

curl -sI http://localhost:8000/ | grep xkey;
docker-compose restart varnish;
curl -sI http://localhost:8080/ | grep xkey;

Custom xkeys are added first:
xkey: l123 l456 ez-all c52 ct42 l2 pl1 p1 p2

$locationIds = [123, 456];
//$response->headers->set('X-Location-Id', implode(',', $locationIds));
$response->headers->set('xkey', 'l'.implode(' l', $locationIds));
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In eZ Platform 3, it seems to be $response->headers->set('X-Cache-Tags',...

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.

1 participant