diff app/controllers/pastes_controller.rb @ 77:2fb80ca710e0

Added cache control so it's cached by browser the first time loaded.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 10:49:23 -0700
parents 8f6a0204b2a7
children 0f206bd4924f
line wrap: on
line diff
--- 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