BanManagement/BanManager-WebUI

Weird CSS caching issue

viocu opened this issue · 3 comments

viocu commented

I'm trying to modify the CSS to fit my website theme, and I managed to add in the meta for a custom.css in the header.php, and that works fine, but when I make changes to the custom.css, my changes do not seem to stick. Like, if I change the background to #000000, that'll take effect the first time I put it in place and save, then when I go to edit and change the color to something different, it'll remain black, and not the new color, although the css file will reflect the new color. It seems there's some kind of funky caching going on and I would like to know how to disable it.

There is no front end asset caching in this UI. Have you put your site behind a CDN like cloudflare?

viocu commented

It does go through cloudflare, yes. However, so does the main part of my website (not just the bans subdomain), and it works through wordpress. I make changes on it and they go through just fine. This is the only thing that doesn't seem to want to accept change.

I'm afraid the issue isn't with this project. The static assets (including CSS) will be served by your web server. This project doesn't and can't set caching headers on assets. I'd recommend looking at your web server settings, as well as Cloudflare.