Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

FOR DISCUSSION ONLY: rework caching #661

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/class/qx/tool/compiler/targets/Target.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ qx.Class.define("qx.tool.compiler.targets.Target", {

let pathToTarget = path.relative(path.join(t.getOutputDir(), t.getProjectDir(application)), t.getOutputDir()) + "/";
let TEMPLATE_VARS = {
"compileTime": Date.now(),
"resourcePath": pathToTarget + "resource/",
"targetPath": pathToTarget,
"appPath": "",
Expand Down Expand Up @@ -740,6 +741,7 @@ qx.Class.define("qx.tool.compiler.targets.Target", {
if (application.getWriteIndexHtmlToRoot()) {
pathToTarget = "";
TEMPLATE_VARS = {
"compileTime": Date.now(),
"resourcePath": "resource/",
"targetPath": "",
"appPath": t.getProjectDir(application) + "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ qx.$$loader = {
} else {
euri = qx.$$appRoot + compressedUris[i];
}
if (qx.$$loader.addNoCacheParam) {
euri += "?nocache=" + Math.random();
}
// if (qx.$$loader.addNoCacheParam) {
// euri += "?nocache=" + Math.random();
// }
euri += "?nocache=" + GLOBALCOMPILETIME;
%{DecodeUrisPlug}
uris.push(euri);
}
Expand Down