Cache-bust data.json fetch with timestamp
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ tr:hover td { background: #f5f9ff; }
|
||||
<p class="footer" id="foot"></p>
|
||||
</div>
|
||||
<script>
|
||||
fetch('data.json').then(r=>r.json()).then(({meta, daily})=>{
|
||||
fetch('data.json?t='+Date.now()).then(r=>r.json()).then(({meta, daily})=>{
|
||||
const valid = daily.filter(d=>d.install>0);
|
||||
const totalInstall = valid.reduce((s,d)=>s+d.install,0);
|
||||
const totalSpend = valid.reduce((s,d)=>s+d.payable_spend,0);
|
||||
|
||||
Reference in New Issue
Block a user