I am aware that I can update the CSS and JS file names with some sort of versioning scheme (i.e. myscript_20231018.js), but the DNN site I am supporting has 8+ layout template files. Therefore, I would like to avoid having to update multiple template files when I update the Javascript. Is there an easier way to force browsers to pull the latest CSS/JS changes other than this approach I mentioned above?
You don't need to do anything to have a version appended to your static dependencies. (This happens automatically via the underlying Client Resource Manager.) This will always be the case, as long as you properly version your theme and install it using DNN's installer.
By the way, it looks more like this example:
example.com/Portals/_default/Skins/MyThemeName/scripts/MyCustomScript.js?cdv=123
In the example above, the 123 number is incremented when you install the extension. You can also manually increment it using the Servers > Performance view in the persona bar.
123
Thanks! This should be what I am looking for...did not realize this was a setting.
Posted By ebaker on 10/18/2023 7:44 PM Thanks! This should be what I am looking for...did not realize this was a setting.
Awesome... Happy to help! 🥳
I am very happy that the staff responds so fast
Posted By Naraize on 10/19/2023 9:43 AM I am very happy that the staff responds so fast
What staff? What are you referring to?
That response doesn't make any sense. Naraize has been moderated until we can verify this is not a bot (or person using a bot).
Naraize
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.