changeset 356:cd1c3a28b89a

Set correct expiration header.
author edogawaconan <me@myconan.net>
date Mon, 04 Aug 2014 17:54:32 +0900
parents 56382cb104dd
children a5447f6128d7
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	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 }