Support the ongoing development of Laravel.io →
Cache Architecture

Hello,

When driver.session is set to something different than "array", each webpage content a response header Set-Cookie "laravel_session" which is different from user's request header Cookie.

My goal is to use Varnish in front of Laravel (to cache public content), but this Set-Cookie on each request is really annoying (this don't help to improve varnish cache ratio... except if you ignore them...)

One solution is to set driver.session to array but this setting disable Auth:: to work fine..

Is that normal for Laravel to reply a Set-Cookie on each request ? included offline user (i cleared cookie before my test) ?

Is there a solution ?

Is someone using laravel with Varnish ? and how did you solve this problem?

Regards,

Last updated 2 years ago.
0

This is my problem: https://github.com/laravel/framework/issues/726

Do you plane fix it ? honnestly guys this is against all 2015's websites.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jcbedier jcbedier Joined 4 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.