public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: reports/reports.js: Enabling caching when download JSON data
@ 2026-09-11 14:40 Owen W. Taylor
0 siblings, 0 replies; only message in thread
From: Owen W. Taylor @ 2026-09-11 14:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : flatpaks/flatpak-runtime
Branch : f45
Commit : 677fd35d057bb662923580dd4947bcf8e21ca009
Author : Owen W. Taylor <otaylor@fishsoup.net>
Date : 2018-02-14T14:51:15-05:00
Stats : +2/-0 in 1 file(s)
URL : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/677fd35d057bb662923580dd4947bcf8e21ca009?branch=f45
Log:
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: [
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:40 [flatpaks/flatpak-runtime] f45: reports/reports.js: Enabling caching when download JSON data Owen W. Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox