-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deleted pages from S3 #46
Comments
I didn't used to care about this too much and still don't like the idea of the plugin trying to decide what needs to be deleted (maintain state, which we can't unless we were the one to create the S3 bucket and it was never modified by any other process). What I would like, to solve the use case of clients requiring this behaviour, is to instead, offer an option to "Empty bucket before deployment". As they'll have Cloudfront in-front, shouldn't cause site issues thanks to caching. The CF invalidation request comes at end, at which point, site is in expected state. If that's not enough for a user's requirements, I'd propose that they are a power/enterprise user to the point that they could either:
or
|
Emptying the bucket won't work because CloudFront's caching is "lazy". Most of the site will not be in-cache in most edge locations and will result in 404s. I think it's okay for WP2Static to maintain the state of the objects that it created. This seems like expected basic functionality to me that really should be there, but I think there isn't a way to track 404s to do this properly. That may change with the advanced-crawling features, and then this will be pretty simple to implement. Blue/green would be ideal though. |
Oh, bummer about the CF caching. OK, sounds totally reasonable, thanks @john-shaffer! Could there be an option:
Or am I over-complicating things further? |
Yeah, we could do that. |
Hi, just checking if there was any progress on this feature request? I agree with @john-shaffer about considering this a basic functionality. Let me share a few examples where it's essential for us: We have a few brands in the tourism industry. There are several situations where we need to remove a page. The most frequent ones are:
Our current workaround is creating a redirection to the homepage, but for certain situations (usually for security or privacy reasons) we need the websites to return a 404 error. In this last case, the content managers have to contact our hosting provider (different timezone) and coordinate a time when they can empty the S3 bucket, and at the same time, we export a new version of the site. Hope those comments help to give more context and ideas as to why some of us consider this an important feature. |
Currently, deleted pages remain on S3 unless the user manually removes them. We should detect 404'd pages and delete them from the bucket.
Reported at https://staticword.press/t/deleted-pages-dont-disappear-from-s3/477
The text was updated successfully, but these errors were encountered: