1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Valid value for "jsVersion" ?

Discussion in 'XenForo Questions and Support' started by RoldanLT, Mar 29, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

    I want to refresh all js on my user's browser cache by changing/adding this into my config:
    $config['jsVersion'] - default: ''
    What is the valid values here?
  2. batpool52!

    batpool52! Well-Known Member

    You can change via ACP when debug mode is enabled.
  3. Chris D

    Chris D XenForo Developer Staff Member

    As well as changing it in debug mode as above, you can also use any text you like to modify the js cache buster in the config, e.g.

    $config['jsVersion'] = 'any string';
    RoldanLT likes this.
  4. RoldanLT

    RoldanLT Well-Known Member

    But this will cause some issues after a big/minor XenForo update right?
    as the JS version stays the same?
  5. Chris D

    Chris D XenForo Developer Staff Member


    The JS version in the Admin CP (mentioned by batpool) is concatenated onto the one in the config file. It's then converted to MD5 and cut down to 8 characters.

    Therefore after upgrade the version string will change because we change the JS version in the Admin CP.
    RoldanLT likes this.
  6. RoldanLT

    RoldanLT Well-Known Member

    Ok Thanks a lot!
    Much better to do the changes on config :).

Share This Page