-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Control how the CloudFront cache is invalidated #369
Comments
I wonder if we could (and if S3 allows it), instead of deleting "obsolete" files, set them to expire (be deleted) after 1 day 🤔 I haven't researched that at all but that would be a solution that we could apply by default for everyone? |
Probably related to #398 |
@mnapoli yep, I was researching on the very same right now. I wonder if we could tag all obsolete files and then use a lifecycle rule to delete these tagged files after a day. Line 155 in 0d56286
|
Why not, as long as it works |
Start from the Use-case
I am running a single page react app. I have 10 different JS files (chunks) after I build my app.
It is normal that a user request 3-5 js files while they are using a part of the application. When they browse to another part they will download more files.
There is an issue if I decide to deploy a new version. Then the additional files are removed from the S3 and CDN. Now when the user asks for the additional files they get a 404.
I suggest to allow us to keep some files on S3 or CloudFront.
Of course I would be open for alternative solutions
Example Config
No response
Implementation Idea
No response
The text was updated successfully, but these errors were encountered: