-
Notifications
You must be signed in to change notification settings - Fork 23
FOR DISCUSSION ONLY: rework caching #661
base: master
Are you sure you want to change the base?
Conversation
load scripts using a fixed cache value defined as the compile time to solve caching issues. This PR only works with the following script added to index.html: <script> window.GLOBALCOMPILETIME = ${compileTime}; </script>
Hi, can you describe in more detail what problem this PR is trying to solve? Maybe there is a different way that does not require to add additional code. |
Hi,
but there is a third possible way : adding ?nocache=FIXEDVALUE where FIXEDVALUE would be defined at compile time. |
The patch is really dirty, I just wrote it to solve my problem quickly, and it would need more work if this approach was to be included in qooxdoo... |
I forgot to add that the script loading part in index.html would become:
|
How about another solution - the scripts output into the boot.js file should have a timestamp which is the date that the file was last modified. This would only happen if If you wanted to code it that would be really helpful! I've noticed that the addNoCacheParam has not been implemented in the compiler, so there are a few steps:
|
Thank you for all the pointers, I will do that! |
load scripts using a fixed cache value defined as the compile time to solve caching issues. This PR only works with the following script added to index.html:
<script> window.GLOBALCOMPILETIME = ${compileTime}; </script>