Skip to content

Commit ab89988

Browse files
committed
header('Expires: 0');
1 parent 561d166 commit ab89988

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

assets/relation_select.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
const url = 'index.php?' + params.toString();
9595

9696
// Load data
97-
fetch(url)
97+
fetch(url, {
98+
cache: 'no-store'
99+
})
98100
.then(response => {
99101
if (!response.ok) {
100102
throw new Error('Network response was not ok');

lib/api.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function execute()
9595
$options = $sql->getArray($query, $params);
9696

9797
header('Content-Type: application/json');
98+
header('Cache-Control: no-cache, no-store, must-revalidate');
99+
header('Pragma: no-cache');
100+
header('Expires: 0');
98101
echo json_encode($options);
99102
exit;
100103

0 commit comments

Comments
 (0)