Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Load external files programatically
Tue, Dec 18 2018 12:07 PMPermanent Link

Jose Verger

Cybernav

Avatar

Hello, is it possible to load the external files inside the program, in the OnCreate event for example ?  instead of using the option of external files ?    because when those external files are changed, some browsers as Chrome do not load the new versions, and use their cached files, and it could be solved if the program loads those files adding time or random numbers as parameters to those external files.

Regards
Wed, Dec 19 2018 11:42 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Hello, is it possible to load the external files inside the program, in the OnCreate event for example ?  instead of using the option of external files ?    because when those external files are changed, some browsers as Chrome do not load the new versions, and use their cached files, and it could be solved if the program loads those files adding time or random numbers as parameters to those external files. >>

Per Skype: you're using IIS, and you're copying the files to the IIS content directory.

You need to make sure that the file timestamps are getting updated properly when you make changes to the external JS and deploy, and then you need to make sure that IIS is sending the proper cache expiration times to the browsers so that the browsers don't cache the external JS files for too long and properly detect when they've changed.

Tim Young
Elevate Software
www.elevatesoft.com
Image