middleman-cloudfront 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -60,8 +60,8 @@ module Middleman
|
|
60
60
|
# if :directory_indexes is active, we must invalidate both files and dirs
|
61
61
|
files += files.map{|f| f.gsub(/\/index\.html$/, '/') }
|
62
62
|
files.uniq!
|
63
|
-
|
64
|
-
|
63
|
+
files.map! { |f| f.start_with?('/') ? f : "/#{f}" }
|
64
|
+
files.reject! { |f| not filter =~ f }
|
65
65
|
|
66
66
|
files
|
67
67
|
end
|