Fix uploading images from images on servers behind cloudflare
This commit is contained in:
parent
81607e68c4
commit
da068e44d0
@ -69,7 +69,7 @@ class FileDownload
|
|||||||
return file_url unless is_cloudflare?(file_url)
|
return file_url unless is_cloudflare?(file_url)
|
||||||
|
|
||||||
url = file_url.dup
|
url = file_url.dup
|
||||||
url.query_values = url.query_values.to_h.merge(nc: Time.now)
|
url.query_values = url.query_values.to_h.merge(nc: Time.now.to_i)
|
||||||
url
|
url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user