diff app/controllers/pastes_controller.rb @ 356:cd1c3a28b89a

Set correct expiration header.
author edogawaconan <me@myconan.net>
date Mon, 04 Aug 2014 17:54:32 +0900
parents 430dadffd91e
children 26545fe719ca
line wrap: on
line diff
--- a/app/controllers/pastes_controller.rb	Mon Aug 04 17:05:16 2014 +0900
+++ b/app/controllers/pastes_controller.rb	Mon Aug 04 17:54:32 2014 +0900
@@ -7,6 +7,7 @@
     @paste = Paste.safe_find(params[:id])
     return head :not_found unless @paste
 
+    expires_in 1.month, :public => true
     respond_to do |format|
       format.html { cache }
       format.txt { cache }