Skip to content

wait some time before clean-up old files #8

@helperFunction

Description

@helperFunction

Hi :)

first: i love this package! great how easy it is to deploy a spa to s3/cloudfront and leveraging tiered TTLs on the go.

I just stumbled about an edge-case for the --delete option:

  1. A user downloads index.html (v1)
  2. spa gets deployed (v2) and (v1) gets deleted
  3. user's browser wants to download v1 linked resources

so this only affects users with a slow connection and only if (v1)-files are not in the cache in cloudfront.

possible solution: add a cli parameter to configure how long to wait before delete old files. Probably a default of 30s/60s should be enough to give slower clients enough time to download everything

Thanks for your work!

and again: i love this one :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions