Skip to content

Instantly share code, notes, and snippets.

View hdwong's full-sized avatar

Bun Wong hdwong

View GitHub Profile
@rolandstarke
rolandstarke / README.md
Last active September 7, 2024 17:48
Laravel less cookies in response

Laravel less Cookies in Response

Laravel sends the session and csrf cookie in every response. That is additional trafic that's not needed. With this changes the session cookie and csrf cookie don't get resend to the client every time if they did not change (but at least once an hour to prevent client side expiring).