# File lib/cgikit/resource.rb, line 389 def bytedata( name ) unless data = super then path = File.join(@tmpdir, name) if FileTest.exist?(path) then cache = nil FileLock.shared_lock(path) do |file| cache = Marshal.load(file) end data = ByteData.new(cache[:data]) data.path = path data.content_type = cache[:mime] end end data end