We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1362
    • 94 Posts
    Hello !
    when i make changes in my css file in the modx file manager, I have to load again linked stylesheet (firefox).
    F5 is useless (firefox, explorer, safari)

    modx empty cache and several hacks = no success

    Any help will be welcome !

    Amigafreak

    modx 1.0.13, php 5_4 [ed. note: amigafreak last edited this post 10 years, 1 month ago.]
      desktop publishing & web design

      Evo and Revo user
    • Firefox has sometimes the problem to update external files during reload if the firebug window stays open.
        • 1362
        • 94 Posts
        Hello Jako,
        Someone give me a simple solution : my web host (OVH in France) change the CDN, so the files are not updated correctly.

        1) I created a snippet {{CacheCSS}} :
        <?php return time(); ?>

        2) in the head of the html, i added
        <link href="[(base_url)]styles.css?var=[!CacheCSS!]" rel="stylesheet" type="text/css">


        now css file is updated correctly !

        hope it could be useful for other modx lovers smiley
        Amigafreak
          desktop publishing & web design

          Evo and Revo user
          • 9995
          • 1,613 Posts
            Evolution user, I like the back-end speed and simplicity smiley
            • 1362
            • 94 Posts
            Quote from: fourroses666 at Apr 04, 2014, 07:40 AM
            http://cssrefreshframe.frebsite.nl/

            Thanks, i'll try this. for the momentthe snippet {{CacheCSS}} works fine, but it is good to have several solutions smiley

            Amigafreak
              desktop publishing & web design

              Evo and Revo user