Revert "Implement front-end strategy to prevent caching"
This reverts commit 51dfa9a247
.
This commit is contained in:
parent
e67a210e95
commit
eca3fb1e19
@ -7,7 +7,7 @@
|
|||||||
strA = "";
|
strA = "";
|
||||||
function send()
|
function send()
|
||||||
{
|
{
|
||||||
nocache = "&nocache=" + Date.now();
|
nocache = "&nocache=" + Math.random() * 1000000;
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
// send HTTP request
|
// send HTTP request
|
||||||
request.open("GET", "win/" + strA +nocache, true);
|
request.open("GET", "win/" + strA +nocache, true);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -166,7 +166,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = d.createElement("script");
|
let scE = d.createElement("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
|
||||||
function loadJS(FILE_URL, async = true) {
|
function loadJS(FILE_URL, async = true) {
|
||||||
let scE = cE("script");
|
let scE = cE("script");
|
||||||
scE.setAttribute("src", FILE_URL + "&c=" + Date.now());
|
scE.setAttribute("src", FILE_URL);
|
||||||
scE.setAttribute("type", "text/javascript");
|
scE.setAttribute("type", "text/javascript");
|
||||||
scE.setAttribute("async", async);
|
scE.setAttribute("async", async);
|
||||||
d.body.appendChild(scE);
|
d.body.appendChild(scE);
|
||||||
|
1252
wled00/html_other.h
1252
wled00/html_other.h
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2262
wled00/html_simple.h
2262
wled00/html_simple.h
File diff suppressed because it is too large
Load Diff
1975
wled00/html_ui.h
1975
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user