Force CSS/JS to reload

Force CSS/JS to reload

  

When we push out a relase, we need to ensure customers clear their browser cache.

In previous worlds I have forced this by adding the release number to a query string.

How is the best way to do this in Outsystems?

Hi Kieran,

In Outsystems you dont need to worry about that, because in Outsystem when you change any javascript / css in page / module level, this make new querystring append in the js url like below,

<script src="/_OSGlobalJS.js?32631" type="text/javascript" charset="UTF-8"></script>

Here 32631 is random number will generate when you have new version of js/css publish, so this way as you said browser will automatically get the latest version.


Thanks,

Balu