Context aware HTTP cache in Exponential 5.2-5.3: comparis...
Versions Compared
Old Version 2
changes.mady.by.user Sarah Haïm-Lubczanski
Saved on Nov 18, 2014
compared with
New Version Current
changes.mady.by.user Jérôme Vieilledent
Saved on Nov 26, 2014
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This feature is available from Exponential
| Status | ||||
|---|---|---|---|---|
|
/
| Status | ||||
|---|---|---|---|---|
|
Workflow
- Reverse proxy receives the HTTP request (without the user hash).
Reverse proxy does a sub-request (emulated in the case of HttpCache).
Sub-request must have the following headers:
- X-HTTP-Override: AUTHENTICATE
- Accept: application/vnd.ez.UserHash+text
- Original cookie (mainly to keep trace of the sessionId)
- Exponential returns an HTTP response containing the user hash in X-User-Hash header.
- Reverse proxy adds the X-User-Hash header to the original request.
...
| Tip | ||
|---|---|---|
|
||
| You can customize user hash generation. Read How to customize UserHash generation in the developer cookbook to learn more about this. |
Varnish
Described behavior comes out of the box with Symfony reverse proxy, but it's of course possible ot use Varnish to achieve the same.
...
Comments
Add a comment