Hi all,
Basically I need to turn off caching on 100%, but maybe something else will help.
I have a next problem -
in main layout: <% if current_user and current_user != :false %> <!-- html for logged in user, Hi user... --> <% else %> <!-- html for not logged in user, Login please... --> <% end %>
if I login all works fine, I see "Hi user", but when I press logout link, page redirected to "/", and I see same "Hi user" text. (when I reload page with ctrl+F5 page reloaded to valid, with "login please" text) Server returns 304, but how this can possible? page must be with other content.
I use next tags in layout - <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="CACHE-CONTROL" content="no-cache">
and put next cofig into the \config\environments\ - config.cache_classes = false config.action_controller.perform_caching = false
I see this bug in WEBrick (dev) and in Mongrel (production), with same configs and templates.
How I can say to browser always reload a html? or to ROR - not use 304 status, always re-render html?