ultrathin js functions and cache

Mayada Al-Kishtini malkishtini at gmail.com
Sun Jun 2 14:26:50 EDT 2019


Hi,

Is there any documentation about Kelly’s ExpandTags external? >From where to get it and how it works?

Thank you,
Mayada


-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Mark Grinde
Sent: Saturday, June 01, 2019 7:35 AM
To: OmnisDev List - English
Subject: Re: ultrathin js functions and cache

Hi Jim-

We have been using the version method Michael describes for years across a wide variety of customer browsers.  We have had no issues so far.

We create our base html page dynamically using a locally stored template and Kelly’s ExpandTags external.  The version for both the css and javascript is one of the variables that ExpandTags replaces— the opening and closing tags we use for the external are -| and |-, and we have variables for which support server to use (uSupport) as well as the dynamically changing version (uVersion):

	<link href="-|uSupport|-/source/order.css?v=-|uVersion|-" rel="stylesheet" type="text/css" />
	<script src="-|uSupport|-/source/order.js?v=-|uVersion|-" type="text/javascript" charset="utf-8"></script>

Our base page only gets loaded once by the customer, and then javascript calls take over for the rest of their session.  So, the base javascript and css are only loaded and cached with the base page— preventing repeated and unnecessary calls to our support server(s) for subsequent javascript and css “versions” while that base page remains in play.  Loading or reloading the base page will always get the latest base html, javascript, and css.

Maybe that helps?

Mark


> On May 31, 2019, at 10:03 AM, Jim Pistrang <jim at jpcr.com> wrote:
> 
> Hi all,
> 
> I have an ultra-thin app that uses javascript functions that are stored on the server.  When I modify a function I find that I have to clear my browser cache before the modified version of the function is run.  My users are spread out over a wide geographic area using an assortment of browsers.  Other than just telling the users to clear their cache, what can I do to ensure that the up-to-date version of my scripts is in use?
> 
> I know that one option is to just build my function in the html that I dynamically create for each screen instead of accessing the script from the server, but the code is much cleaner if I don't need to do this.
> 
> Jim
> 
> -- 
> Jim Pistrang
> JP Computer Resources
> 413-256-4569
> <https://jpcr.com>
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 

_____________________________________________________________
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