Deleting media does not purge the Cloudflare cache, so deleted files stay reachable

(#658) Bug Open: Needs triage media privacy self-hosting

Summary

Deleting media does not purge Cloudflare cache, so S3 media URLs remain accessible after deletion.

Steps to reproduce

  1. Deploy Fluxer with Cloudflare enabled.
  2. Upload and send media attachments.
  3. Delete the message or delete the user or enable delete messages in privacy settings.
  4. Try to open the original media URL directly. The media still loads even after deletion.
  1. The pull request fluxer#3694 mentions this post Merged

1 comment

Sign in with Fluxer to comment and vote.
Deleted comment
Removed by moderator Rex: Removed a general status note that was posted on many GitHub threads. It no longer applies here.
Comment by BiosPlus
That's a cloudflare side issue. You need to invalidate the cache based on the origin. If you have a custom page rule that has caching on, ensure you uncheck the option that allows for serving stale content while updating or revalidating Additionally, use status code TTLs. I find that 200 = 1 month 404 = No store 500-526 = No store Works best