User dylandamsma reported severe caching issues while customizing the styling on a Discourse instance hosted on a 1GB DigitalOcean server. Despite clearing the cache, rebuilding the application, and testing across different browsers, changes to the CSS took up to a day to reflect, and the preview function displayed outdated styles. riking suggested a workflow of editing, saving, and previewing, while sam noted that similar bugs had been recently addressed in newer versions. After providing a code snippet for footer styling that failed to apply, dylandamsma discovered the root cause: the site was behind Cloudflare, which was aggressively caching the static assets. The issue was resolved by bypassing Cloudflare and accessing the site directly via its IP address, confirming that the problem lay with the external CDN rather than Discourse itself.
Previewing styling gives an older version as well and even removes some of the styling.. I am lost.
I checked whether I am targeting the right elements, and I am 100% sure they are correct.
Is there any way I can solve this or bypass the caching when editing the styling?
That’s strange, for me preview style always is up to what I just changed. To be clear, what I would do is make edits → save → preview → check changes → use inspector to make more changes → copy into editor → repeat.
I’ve tried refreshing, clearing cache, other browsers.. nothing helps to get it working.
Is it possible to clear the cache or something to get the changes through? it’s really annoying not being able to see the changes when making style changes to the site. (also, it would be nice if that footer on the site is styled )