Js Client - Studio 10 cache clearing

Bruno Del Sol bruno.delsol at bydesign.fr
Wed Jul 17 02:00:55 EDT 2019


Hi Andrew,

We use the Apache cache policy below in production sites. As far as I can tell, it handles caching correctly, ie all 
cached file are reloaded from the server as soon as their size or modify date changes.


#---------------default cache all
Header unset ETag
FileETag None

Header set Cache-Control "public"
Header set Pragma "public"
Header set Expires 0
#---------------end default cache all

#---------------do not cache some omnis apps files

<Files spatref.htm>
# default page for one omnis app
         Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate, private"
         Header Set Pragma "no-cache"
         Header Set Expires "Thu, 1 Jan 2000 00:00:00 GMT"
</Files>

<Files bd8.js>
# by design added omnis js
         Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate, private"
         Header Set Pragma "no-cache"
         Header Set Expires "Thu, 1 Jan 2000 00:00:00 GMT"
</Files>
  #---------------end do not cache some omnis apps files


By Design
http://www.bydesign.fr
Bruno Del Sol
bruno.delsol at bydesign.fr
tel (33) 01 48 78 47 37
46, rue de La Tour d'Auvergne
75009 Paris (France)

Le 16/07/2019 à 16:39, Andrew Stolarz a écrit :
> 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