Lets use the same everywhere (doc, defaults, tests)

----- Reply message -----
Von: "Joel Wurtz" <notifications@github.com>
An: "FriendsOfSymfony/FOSHttpCache" <FOSHttpCache@noreply.github.com>
Cc: "David Buchmann" <david@liip.ch>
Betreff: [FOSHttpCache] Improve user context caching docs (#66)
Datum: So., Mai. 18, 2014 21:51
In doc/varnish-configuration.md: 
> +    if (req.restarts > 0 && req.http.X-FOSHttpCache-OriginalMethod) { 
> +        set req.request = req.http.X-FOSHttpCache-OriginalMethod; 
> +        set req.url     = req.http.X-FOSHttpCache-OriginalUrl; 
> + 
> +        unset req.http.X-FOSHttpCache-OriginalUrl; 
> +        unset req.http.X-FOSHttpCache-OriginalMethod; 
> +    } 
> +} 
> + 
> +sub vcl_miss { 
> +    // When creating backend request, varnish force GET method (bug ?) 
> +    set bereq.request = req.request; 
> + 
> +    // Re-add cookies to any requests that will go to the backend application 
> +    if (bereq.http.X-FOSHttpCache-TempCookie) { 
> +        set bereq.http.cookie = bereq.http.X-FOSHttpCache-TempCookie; 

Do we keep FOSHttpCache prefix in this configuration also ? or should we use the same one as the documentation in user-context ? 

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