DarrenOfficial/dpaste

Slim view reveals the paste after it's been deleted

samirgunic opened this issue ยท 3 comments

Description

When "slim" paste view is used, and then the paste is deleted, the paste appears as if it's removed (in normal paste view) but the "slim" view reveals that it's actually persisted. I think it's purged a couple of days later, just not immediately.

Environment

URLs:

https://dpaste.org/MRgx
https://dpaste.org/MRgx/slim

The issue is not browser-specific, I have tested with Firefox 85.0b1 and Edge 87.0.664.60 (in private sessions).

Steps to reproduce

  1. Go to https://dpaste.org/
  2. Type in "Hello world!"
  3. Click on "Paste Snippet"
  4. Click on "Slim"
  5. Copy the URL to clipboard.
  6. Navigate back to previous page.
  7. Click on "Delete Now"
  8. Click on "Yes, Delete"
  9. Paste in the slim URL and navigate to it.

Expected result

"404 Snippet not found"

Actual result

"Hello world!"

Thank you for the detailed report. The cache is not cleared upstream (in my case Cloudflare) and thats a pretty obvious bug. ๐Ÿ˜† For now I disabled caching completely, which solves this symptom but not the issue.

Thanks for letting me know, and keep up the good work! ๐Ÿฅ‡ This is my favorite paste service you know! ๐Ÿ˜‰

Resolved by using Cloudflare page rules. IMG_0558