diff options
author | Johan Sørensen <johan@johansorensen.com> | 2009-04-20 12:33:13 +0200 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-04-22 15:18:39 +0200 |
commit | feea346ed8ec1507c5fcb6b61da667bc261a6f22 (patch) | |
tree | da522ad612d7e70f2d0c2b00d1ac2e38e49b8922 /app/controllers/blobs_controller.rb | |
parent | 15c5765546cc69cb89941c9cf5e683406ec4160c (diff) | |
download | gitorious-mainline-outdated-feea346ed8ec1507c5fcb6b61da667bc261a6f22.zip gitorious-mainline-outdated-feea346ed8ec1507c5fcb6b61da667bc261a6f22.tar.gz gitorious-mainline-outdated-feea346ed8ec1507c5fcb6b61da667bc261a6f22.tar.bz2 |
HTTP Cache raw blobs longer
Diffstat (limited to 'app/controllers/blobs_controller.rb')
-rw-r--r-- | app/controllers/blobs_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/blobs_controller.rb b/app/controllers/blobs_controller.rb index 5c24840..41a76da 100644 --- a/app/controllers/blobs_controller.rb +++ b/app/controllers/blobs_controller.rb @@ -43,7 +43,7 @@ class BlobsController < ApplicationController @root = Breadcrumb::Blob.new(:paths => @path, :head => head, :repository => @repository, :name => @blob.basename) render_not_found and return unless @blob - expires_in 2.minutes + expires_in 10.minutes end end @@ -62,7 +62,7 @@ class BlobsController < ApplicationController flash[:error] = I18n.t "blogs_controller.raw_error" redirect_to project_repository_path(@project, @repository) and return end - expires_in 2.minutes + expires_in 30.minutes render :text => @blob.data, :content_type => @blob.mime_type end end |