temporary work-around to fix CDN issues with the theme_assets (they do not want have a timestamp)
did
committed Sep 10, 2015
commit aabcb5fdb2ff7bf326ae18b6149fa6d492f39d16
Showing 2
changed files with
4 additions
and 1 deletions
locomotive/steam/entities/site.rb b/lib/locomotive/steam/entities/site.rb
+2
-1
| @@ | @@ -6,7 +6,8 @@ module Locomotive::Steam |
| def initialize(attributes = {}) | |
| super({ | |
| - | prefix_default_locale: false |
| + | prefix_default_locale: false, |
| + | updated_at: nil |
| }.merge(attributes)) | |
| end | |
locomotive/steam/services/asset_host_service.rb b/lib/locomotive/steam/services/asset_host_service.rb
+2
-0
| @@ | @@ -14,6 +14,8 @@ module Locomotive |
| def compute(source, timestamp = nil) | |
| return source if source.nil? | |
| + | timestamp ||= site.try(:updated_at).to_i |
| + | |
| return add_timestamp_suffix(source, timestamp) if source =~ Steam::IsHTTP | |
| url = self.host ? URI.join(host, source).to_s : source | |