# HG changeset patch # User Edho Arief # Date 1349372963 25200 # Node ID 2fb80ca710e08eff6250476fc4b14893b9fd7352 # Parent 5635c91f4bfdfba28250f282d68108d20b892094 Added cache control so it's cached by browser the first time loaded. diff -r 5635c91f4bfd -r 2fb80ca710e0 app/controllers/pastes_controller.rb --- a/app/controllers/pastes_controller.rb Thu Oct 04 15:40:39 2012 +0700 +++ b/app/controllers/pastes_controller.rb Thu Oct 04 10:49:23 2012 -0700 @@ -11,6 +11,7 @@ end @paste = Paste.find(params[:id]) + expires_in 1.year, :public => true respond_to do |format| format.html # show.html.erb format.txt # show.txt.erb