diff --git a/AUTHORS b/AUTHORS index 67d80b6f1..6bda4ae73 100644 --- a/AUTHORS +++ b/AUTHORS @@ -56,3 +56,4 @@ List of contributors, in chronological order: * Alexander Zubarev (https://github.com/strike) * Nicolas Dostert (https://github.com/acdn-ndostert) * Ryan Gonzalez (https://github.com/refi64) +* Nic Waller (https://github.com/sf-nwaller) diff --git a/s3/public.go b/s3/public.go index 67edca09f..61185747d 100644 --- a/s3/public.go +++ b/s3/public.go @@ -224,6 +224,7 @@ func (storage *PublishedStorage) Remove(path string) error { return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage)) } + delete(storage.pathCache, path) if storage.plusWorkaround && strings.Contains(path, "+") { // try to remove workaround version, but don't care about result _ = storage.Remove(strings.Replace(path, "+", " ", -1))