Js Client - Studio 10 cache clearing
Michael Monschau
michael at brainydata.co.uk
Thu Jul 18 00:46:33 EDT 2019
Hi Andrew,
I know Clifford thinks I am missing a trick and perhaps I am, but the following works for me and developers who use my software.
Simply append a version number parameter to the src url as in
<script type="text/javascript" src="scripts/ssz.js?version=10_0_0_3"></script>
<script type="text/javascript" src="scripts/omjsclnt.js?version=10_0_0_3"></script>
<script type="text/javascript" src="scripts/omjqclnt.js?version=10_0_0_3"></script>
It is simple, quick and effective. As far as we area ware, it works with all major browsers. Has done for many years.
Regards,
Michael
Michael Monschau (Director)
Brainy Data Limited
Reply To: michael at brainydata.co.uk
Phone: +44 (0)870 474 0708
Web: www.brainydata.com the home of Omnis Components and Developer Services
> On 16 Jul 2019, at 15:39, Andrew Stolarz <stolarz at gmail.com> wrote:
>
> Hello,
>
> Im just curious how others are handing this or what the best way would be
> to go about this.
>
> Our app is using Studio 10.0.0.3, and is using the omnis scripts:
>
> ie.
> <script type="text/javascript" src="scripts/ssz.js"></script>
> <script type="text/javascript" src="scripts/omjsclnt.js"></script>
> <script type="text/javascript" src="scripts/omjqclnt.js"></script>
>
>
> When I test our app using the new 10.0.1 - beta 2, most of the browsers are
> still caching the old script files (desktop and mobile devices). As a
> result, the app basically does not function on some browsers or produces
> very weird behaviours due to the wrong script files used.
>
> When clients migrate from 10.0.0.3 to 10.0.1 once released, they will also
> experience these issues. We deploy our JS client app per site. (ie.
> client has own web servers etc).
>
>
> Any suggestions?... just looking for essentially a one time cache clearing.
>
>
> Andrew
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list