From 677fd35d057bb662923580dd4947bcf8e21ca009 Mon Sep 17 00:00:00 2001 From: Owen W. Taylor Date: Feb 14 2018 19:51:15 +0000 Subject: reports/reports.js: Enabling caching when download JSON data The default behavior of DataTables is to avoid caching AJAX data by adding a timestamp parameter. Let the browser do it's normal thing. --- diff --git a/reports/report.js b/reports/report.js index abc4d43..17c1e5d 100644 --- a/reports/report.js +++ b/reports/report.js @@ -18,6 +18,7 @@ function startAppReport() { table = $('#appTable').DataTable( { ajax: { url: 'applications.json', + cache: true, dataSrc: 'applications', }, createdRow: function(row, data) { @@ -80,6 +81,7 @@ function startPackageTable(id, src) { var table = $(id).DataTable( { ajax: { url: 'application-packages.json', + cache: true, dataSrc: src, }, columns: [