amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

[Feature request] Ability to manually purge cached pages/urls

Open stefangomez opened this issue 6 years ago • 7 comments

Is your feature request related to a problem? Please describe. According to this comment from AWS it's a feature that deleted files don't get purged from the cache until after several more builds. This can present problems for some (possibly even legal ones). I'm opening this up as a feature request, since it seems all the other issues relating to this are getting closed because it's a feature, not a bug.

Describe the solution you'd like Either via UI or through a configuration file/setting/api (preferably all of the aforementioned ways) a way to purge specific urls, or even the entire cache. It could even be a build-time setting. Cloudfront has UI and APIs for this, though not instant, it'd probably be acceptable.

Additional context Related issues: #74, #178, #294

stefangomez avatar Dec 14 '19 01:12 stefangomez

I have a copyright lawyer after me to delete a file and I can't. This is a big problem.

dhait avatar Feb 11 '20 23:02 dhait

I am also in hot water because I can't purge files that users have explicitly requested be removed from our platform, we have deleted them in the build but the cache still exists. Is there any short term workaround for this while we find a better solution?

simpson avatar Mar 05 '20 12:03 simpson

@simpson @dhait @stefangomez we have picked this up on our priority list and will work on a fix. Will update when we have something ready.

swaminator avatar Apr 13 '20 23:04 swaminator

Is this still being worked on? I just had to delete and re-create my app for updates in my React routing to work...

Henriii avatar Jul 30 '20 11:07 Henriii

@swaminator Is there an update since you picked up this issue on the priority list? Needing to manually run 6 consecutive builds is not a feasible solution to remove a page from cache when, as others mentioned, there may be legal concerns. An update would be much appreciated.

drake-smith avatar Oct 20 '20 04:10 drake-smith

@swaminator Any update on this, please?

roberttolton avatar Jul 19 '23 17:07 roberttolton

Still waiting for any updates here...?

Kick933 avatar Mar 05 '24 09:03 Kick933