How to Repo
- Insert a category background image (possibile more than 1000px in size)
- Save.
- Ctrl + F5
- Go to the category you added the image and delete it, Click Save. Ctrl + F5 . The background image is still there!
A bug report was raised by Alankrit_Choudh regarding category background images persisting after deletion. The user reported that even after removing the image and performing a hard refresh (Ctrl + F5), the old image remained visible. codinghorror asked for reproduction details, prompting techAPJ to confirm the issue required a hard refresh to clear and subsequently submit a pull request to address it: PR to fix issue. techAPJ requested a review from zogstrip, who responded that they could not reproduce the issue on the try instance. techAPJ noted they could reproduce it on their local dev environment but not on the try or a standard DigitalOcean (DO) hosted instance. Seeking clarification, techAPJ asked Alankrit_Choudh for the specific instance details. Alankrit_Choudh speculated that the issue might be caused by Cloudflare caching, as it occurred only once on their DO-hosted production site (https://animeforums.me) and they have since removed the backgrounds without attempting further reproduction.
How to Repo
Can you repro this @techapj?
I had to do “hard refresh” to clear category background image (after deleting category image).. Looking more into it.
I sent a PR to fix this issue:
https://github.com/discourse/discourse/pull/4052
I will let @zogstrip review the PR since he is familiar with this code. ![]()
Hmm, I actually can’t reproduce this issue. I just tried on try and it worked just fine.
Yes, I am not able to repro this on try too. But I can repro this consistently on my local dev instance.. ![]()
Weird, I can’t even repro this on a regular DO hosted instance.
@Alankrit_Choudh on which instance are you getting this issue? And are you able to repro this consistently?
Well, it lasted for a while, is it possible that this could be happening via Cache from Cloudflare? Happened only once as of now. After that didn’t take the risk of following it on a live production.
I have my instance on DO - https://animeforums.me
Edit i removed the backgrounds from the category. After that, i have not attempted this repro.