DEV Community

nico_lrx
nico_lrx

Posted on

 

Is clearing session data for edge caching mandatory?

I try to replicate the Forem caching system for my Rails app. I just wonder if there is any security issues with keeping Session cookies while caching a page?

In Forem's controller concern, which sets cache headers, request.session_options[:skip] = true is skipping session cookies.

Could someone explain to me why? I use session data in order to redirect the user after login to the last page visited.

Thanks for your help, I am quite a noob about caching!

Latest comments (0)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. 🛠