Changes in CSS dont show instantly in browser



  • Can anybody feed me with the knowledge, why my CSS do not instantly show any changes in browser, does nodebb uses any sort of cache or I am doing some mistake.

    My grunt is already watching the changes but still, I also did restart my nodebb and hit control refresh in browser but still it takes time to show my css.


  • Community Rep

    Any time you make changes to the css, nodebb needs to recompile all of the css, so it will always take some time.

    If you need to make some instant changes, you can use the Appearance => Custom HTML & CSS tab, which is inserted instantly into the page header without recompiling all css.



  • Hi many thanks for the reply. I actually created a new css file in less folder of my persona theme folder and I am writing my custom css for style, I can see the changes in local server however when i push my changes to my extranet server which is running in nginx, my changes does not show.

    Any idea why?


  • Admin

    Hmm. Do you get this problem if you were writing in LESS instead? (It should be directly compatible with whatever you've written in CSS BTW)

    If it works for LESS but not CSS I think I know what the bug is (please post an issue on our GH tracker if so)

    EDIT: if if doesn't work for either, then it's likely not a bug but perhaps a browser cache issue on your end


  • Admin

    @mkarmocha Yeah I'd wager it's the browser cache. You need this ticked:

    0_1456968653412_Selection_105.png



  • Hi Julian, I don't see such setting in my dashboard0_1456972572880_Screenshot from 2016-03-03 15:35:34.png



  • @mkarmocha said:

    Hi Julian, I don't see such setting in my dashboard0_1456972572880_Screenshot from 2016-03-03 15:35:34.png

    and the version is NodeBB v0.9.3.


  • GNU/Linux

    The setting @julian describes belongs to the browser (chrome/chromium in this case), not NodeBB.
    If you're using chrome/chromium, press F12, then F1 to show the options. Check the option and keep the tools open while refreshing the page to ensure the cache is disabled.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.