We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0778b6f commit d15bf31Copy full SHA for d15bf31
bindings/ruby/lib/whisper/model/uri.rb
@@ -55,6 +55,8 @@ def request(uri, headers)
55
when Net::HTTPNotModified
56
# noop
57
when Net::HTTPOK
58
+ return if !response.key?("last-modified") && cache_path.exist?
59
+
60
download response
61
when Net::HTTPRedirection
62
request URI(response["location"]), headers
0 commit comments