comparison 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
comparison
equal deleted inserted replaced
355:56382cb104dd 356:cd1c3a28b89a
5 # GET /1.txt 5 # GET /1.txt
6 def show 6 def show
7 @paste = Paste.safe_find(params[:id]) 7 @paste = Paste.safe_find(params[:id])
8 return head :not_found unless @paste 8 return head :not_found unless @paste
9 9
10 expires_in 1.month, :public => true
10 respond_to do |format| 11 respond_to do |format|
11 format.html { cache } 12 format.html { cache }
12 format.txt { cache } 13 format.txt { cache }
13 end 14 end
14 end 15 end