Skip to content

Instantly share code, notes, and snippets.

@thenickcox
Created December 22, 2014 15:33
Show Gist options
  • Save thenickcox/a5ee516fa899ae890737 to your computer and use it in GitHub Desktop.
Save thenickcox/a5ee516fa899ae890737 to your computer and use it in GitHub Desktop.
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
before_filter :vary_headers
private
def vary_headers
response.headers["Vary"]= "Accept"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment