RE: [EXTERNAL] Re: Clear the cache strategy

2023-03-09 Thread Brian Raymes
If you use Maven, you can the maven-replacer-plugin to automate the version/timestamp/build/etc for every build. One could also filter out things such unwanted files like .DS_Store with other plugins. For instance: . . . ${maven.build.timestamp} . . .

Re: Clear the cache strategy

2023-03-09 Thread Hugo Ferreira
I found this VS Code extension: https://marketplace.visualstudio.com/items?itemName=adrianwilczynski.terminal-commands With this I'm writing a script, so then after build-release, right-click on the release folder to clean files and inject the version. Hugo Ferreira escreveu no dia sexta, 10/03/2

Re: Clear the cache strategy

2023-03-09 Thread Hugo Ferreira
Thank you all. You all gave me greate ideas. Josh, no need to spend time on this. I will create my own script (remove the .DS files is also a good idea - I hate the mac pollute all my folders with that). Harbs escreveu no dia quinta, 9/03/2023 à(s) 21:56: > Yes. My script also has some "aws s3 s

Re: Clear the cache strategy

2023-03-09 Thread Harbs
Yes. My script also has some "aws s3 sync", "aws s3 cp” and "aws cloudfront create-invalidation” commands to upload the app after updating the version info. The sync commands (for the whole release directory has these arguments: --exclude "*.DS_Store*" --delete --cache-control max-age=2592000 -

Re: Clear the cache strategy

2023-03-09 Thread Josh Tynjala
I think some JS bundling tools generate a short hash (like SHA or MD5) based on the contents of the file. Just a possible alternative to using a version string. The Royale compiler doesn't support doing anything like that automatically, but I don't see why you couldn't write a shell script to run a

Re: Clear the cache strategy

2023-03-09 Thread Hugo Ferreira
Thank you. OK, after you build-release you run a script that does exactly that. Harbs escreveu no dia quinta, 9/03/2023 à(s) 21:37: > I have a bash script to stage my app that looks like this: > > version=$(cat $DIR/releases.json | jq '.version') > version="${version%\"}" > version="${version#\

Re: Clear the cache strategy

2023-03-09 Thread Harbs
I have a bash script to stage my app that looks like this: version=$(cat $DIR/releases.json | jq '.version') version="${version%\"}" version="${version#\"}" build=$(node -e 'console.log(Date.now())') jq '.build = '$build releases.json > tmp.$$.json && mv tmp.$$.json releases.json sed -ie "s/MyAp

Clear the cache strategy

2023-03-09 Thread Hugo Ferreira
Hi, I'm releasing now updates more often and sometimes (many times), the browser cache my App.js In a quick google search I found a solution (more a workaround) => https://stackoverflow.com/questions/1011605/clear-the-cache-in-javascript When I build - release with VS Code, it inject this line on