Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
Add asterix to each invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
benjohnde committed Mar 23, 2021
1 parent f57b333 commit 2459680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CloudFrontInvalidations.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function purgeURLs($pagesOrURLs)
}

$pagesOrURLs = array_map(function ($urlItem) {
return parse_url($urlItem)['path'];
return parse_url($urlItem)['path']."*";
}, $pagesOrURLs);

$cloudFrontConfig = [
Expand Down

0 comments on commit 2459680

Please sign in to comment.