How to prevent Rails from always sending a session header (Set-Cookie). This is a security issue if the application also sends the Cache-Control: public header.
My application affects (but does not modify) the session hash in some / most actions. Closed content is not displayed on these pages, so I want them to be cachable, but Rails always sends the cookie header, regardless of whether the previous hash is different from the previous one or not.
I want to achieve only sending a hash if it is different from the one received from the client. How can you do this? And probably this fix should also be part of the official Rails release? What do you think?
source
share