We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 561d166 commit ab89988Copy full SHA for ab89988
assets/relation_select.js
@@ -94,7 +94,9 @@
94
const url = 'index.php?' + params.toString();
95
96
// Load data
97
- fetch(url)
+ fetch(url, {
98
+ cache: 'no-store'
99
+ })
100
.then(response => {
101
if (!response.ok) {
102
throw new Error('Network response was not ok');
lib/api.php
@@ -95,6 +95,9 @@ function execute()
$options = $sql->getArray($query, $params);
header('Content-Type: application/json');
+ header('Cache-Control: no-cache, no-store, must-revalidate');
+ header('Pragma: no-cache');
+ header('Expires: 0');
echo json_encode($options);
exit;
103
0 commit comments