Created
July 15, 2012 21:30
-
-
Save danielcooper/3118703 to your computer and use it in GitHub Desktop.
This file contains 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
class PostsController < ActionController::Base | |
after_filter :set_http_cache, :only => :index | |
private | |
def set_http_cache | |
expires_in(30.seconds, :public => true) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment