Created
December 22, 2014 15:33
-
-
Save thenickcox/a5ee516fa899ae890737 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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