Fr4nsson 1 Posted April 3, 2019 Share Posted April 3, 2019 (edited) How can i force refresh css so its not saved in cache? currently when i edit the custom css (branding/css.css) i don't see the changes on the page until i clear all the cache from my browser manually. If i look at the file with inspector it has the name "Css.css?v=4.0.3.0" Can i make it get new versions as i update my custom css? Edited April 3, 2019 by Fr4nsson Link to comment Share on other sites More sharing options...
Luke 37186 Posted April 3, 2019 Share Posted April 3, 2019 You'd have to clear browsing data. Link to comment Share on other sites More sharing options...
Fr4nsson 1 Posted April 3, 2019 Author Share Posted April 3, 2019 (edited) You'd have to clear browsing data. So there is no other way? im willing to edit html files or javascript for it to work https://stackoverflow.com/questions/8331473/how-to-prevent-browsers-from-caching-css-files https://css-tricks.com/strategies-for-cache-busting-css/ Edited April 3, 2019 by Fr4nsson Link to comment Share on other sites More sharing options...
Fr4nsson 1 Posted April 3, 2019 Author Share Posted April 3, 2019 (edited) I removed css from \programdata\config\branding.xml and placed it here instead. \system\dashboard-ui\css\site.css now it works. And im aware it resets on update. Thanks anyway. Edited April 3, 2019 by Fr4nsson Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now