summaryrefslogtreecommitdiffstats
path: root/app/controllers/blobs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/blobs_controller.rb')
-rw-r--r--app/controllers/blobs_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/blobs_controller.rb b/app/controllers/blobs_controller.rb
index 46d85ae..1fa34b4 100644
--- a/app/controllers/blobs_controller.rb
+++ b/app/controllers/blobs_controller.rb
@@ -35,7 +35,7 @@ class BlobsController < ApplicationController
unless @blob.respond_to?(:data) # it's a tree
redirect_to project_repository_tree_path(@project, @repository, @commit.id, @path)
end
- cache_for 2.minutes
+ expires_in 2.minutes
end
def raw
@@ -52,7 +52,7 @@ class BlobsController < ApplicationController
flash[:error] = I18n.t "blogs_controller.raw_error"
redirect_to project_repository_path(@project, @repository) and return
end
- cache_for 2.minutes
+ expires_in 2.minutes
render :text => @blob.data, :content_type => @blob.mime_type
end