Safari 7 blank page problem
It seems that for some reason Safari 7 will cache the 304 blank response body for a page and then return it on subsequent requests. This seems like a bug in Safari 7 on OS X and on iOS 7.
A temporary fix for Rails is to include a before_filter in Application controller that sets the Last-Modified header to the current time. I don't really like doing this but it's the only solution I've found that works reliably.
class ApplicationController < ActionController::Base protect_from_forgery before_filter :fix_caching_problem def fix_caching_problem headers['Last-Modified'] = Time.now.httpdate end end











