Commit 6739c48a17058ea752006e152af1539ddec1337f

Use the proper sha1'ed path as the blob cache key

Commit diff

app/views/browse/blob.html.erb

 
1515 <small>(<%= link_to "raw blob data", raw_blob_path(@commit.id, current_path) -%>)</small>
1616</h1>
1717<!-- <%= @blob.mime_type -%> -->
18
1819<%= breadcrumb_path(@repository.name, @commit.id) -%>
1920
2021<% if @blob.mime_type =~ /^text/ && !too_big_to_render?(@blob.size) -%>
21 <% cache do -%>
22 <% cache(blob_path(@commit.id, params[:path])) do -%>
2223 <%= render_highlighted(@blob.data, current_path.last || "") -%>
2324 <% end -%>
2425<% elsif too_big_to_render?(@blob.size) && @blob.mime_type =~ /^text/ -%>
2828 <%= link_to "try viewing the raw data", raw_blob_path(@commit.id, current_path) -%>
2929 </p>
3030<% elsif @blob.mime_type =~ /^image/ -%>
31 <% cache do -%>
31 <% cache(blob_path(@commit.id, params[:path])) do -%>
3232 <%= image_tag raw_blob_path(@commit.id, current_path) -%>
3333 <% end -%>
3434<% else -%>
toggle raw diff