Fixed an issue in the declaration of the javascript cache variable as a local variable in the exported methods. This was causing NO_CACHE to never generate the pjxrand in the query string.
Changed the code so that cache is set as a global javascript variable.
Thanks to Shivanandham Karunanithi for identifying this.