DEV: Remove development cache-buster query parameter (#17444)
All our development-mode assets serve a `Cache-Control: no-cache` header, so a query parameter shouldn't be needed. Ember CLI does not include cache-busting parameters, so this change will move the development rails app to the same behaviour. This will fix adding persistent breakpoints in the dev tools. Previously, the browser would think that the assets have been replaced and throw away the breakpoints.
This commit is contained in:
parent
8a0bddd98d
commit
f38114e161
|
@ -125,13 +125,6 @@ module ApplicationHelper
|
|||
path = path.gsub("#{GlobalSetting.cdn_url}/assets/", "#{GlobalSetting.cdn_url}/brotli_asset/")
|
||||
end
|
||||
|
||||
if Rails.env == "development"
|
||||
if !path.include?("?")
|
||||
# cache breaker for mobile iOS
|
||||
path = path + "?#{Time.now.to_f}"
|
||||
end
|
||||
end
|
||||
|
||||
path
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue