sergiodxa / remix-hono

Hono middlewares for Remix
MIT License
445 stars 10 forks source link

Auto commit only on diff? #189

Open ersinakinci opened 7 months ago

ersinakinci commented 7 months ago

Would it be possible to make it so that auto-commit only sets the session cookie if the cookie would be different?

Right now, the middleware commits the session every single time, which means downloading a large Set-Cookie header on each request.

Thanks for your work!