Yes lets support the Auth header as well by default.

----- Reply message -----
Von: "Joel Wurtz" <notifications@github.com>
An: "FriendsOfSymfony/FOSHttpCache" <FOSHttpCache@noreply.github.com>
Cc: "David Buchmann" <david@liip.ch>
Betreff: [FOSHttpCache] Add tests for head request, and add cookies on a hit for pass action (#62)
Datum: Fr., Mai. 23, 2014 18:53
In doc/varnish-configuration.md: 
>          set req.url     = "/user_context_head.php"; 
>          set req.request = "HEAD"; 
>   
> -        # By default, Varnish does not cache when cookies are present. 
> -        # So remove Cookie header and store it in a temporary header. 
> -        set req.http.x-original-cookie = req.http.cookie; 
> -        unset req.http.cookie; 
> +        # 
> +        # By default, Varnish does not look for cache when a Cookie or 
> +        # Authorization header is present. 
> +        # 
> +        # You can force this lookup by uncommenting the line below. 
> +        # 
> +        # return (lookup); 

Forget what i say, it's good with this line  

if (req.restarts == 0 && req.http.cookie && (req.request == "GET" || req.request == "HEAD")) { 


So the hash request is only called when session is start (as we need a cookie) 

Do we transform this into a (req.http.cookie || req.http.Authorization) by the way ? 

&mdash;
Reply to this email directly or view it on GitHub.