Skip to the content
Documentation

Context aware HTTP cache in Exponential 5.2-5.3: comparis...

No ratings yet

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
colour Yellow
title 5.2

/

Status
colour Yellow
title 2013.07

Workflow

  1. Reverse proxy receives the HTTP request (without the user hash).
  2. 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)
  3. Exponential returns an HTTP response containing the user hash in X-User-Hash header.
  4. Reverse proxy adds the X-User-Hash header to the original request.

...

Tip
title 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

Comments are read by a moderator before they appear.