mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Remove the OpenStack API cache busting.
Not sure why this was ever here, and I cannot find a reason to continuously bust the Nova request caching in the wsgi request handler. It does not help performance, and makes attempts at ANY caching of responses to a Fog request annoying.
This commit is contained in:
parent
6576dd5b1f
commit
ed70672110
6 changed files with 1 additions and 10 deletions
|
@ -338,7 +338,7 @@ module Fog
|
|||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{@tenant_id}/#{params[:path]}",
|
||||
:query => params[:query] || ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
:query => params[:query]
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
if error.response.body != 'Bad username or password' # token expiration
|
||||
|
|
|
@ -230,8 +230,6 @@ module Fog
|
|||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
# Causes errors for some requests like tenants?limit=1
|
||||
# :query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
raise if retried
|
||||
|
|
|
@ -148,8 +148,6 @@ module Fog
|
|||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
# Causes errors for some requests like tenants?limit=1
|
||||
# :query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
if error.response.body != 'Bad username or password' # token expiration
|
||||
|
|
|
@ -168,8 +168,6 @@ module Fog
|
|||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
# Causes errors for some requests like tenants?limit=1
|
||||
# :query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
if error.response.body != 'Bad username or password' # token expiration
|
||||
|
|
|
@ -150,8 +150,6 @@ module Fog
|
|||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
# Causes errors for some requests like tenants?limit=1
|
||||
# :query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
if error.response.body != 'Bad username or password' # token expiration
|
||||
|
|
|
@ -210,7 +210,6 @@ module Fog
|
|||
}.merge!(params[:headers] || {}),
|
||||
:host => endpoint_uri.host,
|
||||
:path => "#{endpoint_uri.path}/#{params[:path]}",
|
||||
:query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
if error.response.body != 'Bad username or password' # token expiration
|
||||
|
|
Loading…
Reference in a new issue