Skip to content

Instantly share code, notes, and snippets.

@tuzz
Created August 17, 2012 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuzz/3377322 to your computer and use it in GitHub Desktop.
Save tuzz/3377322 to your computer and use it in GitHub Desktop.
Fix most AJAX no-layout caching problems
def my_action
response.headers['Cache-Control'] = 'no-store' if request.xhr?
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment