changeset 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 5635c91f4bfd
children 6ae3333a0251
files app/controllers/pastes_controller.rb
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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