public
Created

  • Download Gist
posts_controller.rb
Ruby
1 2 3 4 5 6 7 8 9 10
class PostsController < ActionController::Base
after_filter :set_http_cache, :only => :index
private
def set_http_cache
expires_in(30.seconds, :public => true)
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.