Skip to content

Commit

Permalink
prevent cache on parameters if changed
Browse files Browse the repository at this point in the history
  • Loading branch information
moisbo committed Aug 20, 2024
1 parent 6377e25 commit d7680a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socrates-web",
"private": true,
"version": "1.0.14",
"version": "1.0.15",
"type": "module",
"homepage": "https://soil-and-land.github.io/socrates-web/",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/model.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function run({socrates, parameters}) {
}

export async function parameters() {
let response = await fetch('parameters.json');
let response = await fetch('parameters.json?nocache=' + (new Date()).getTime());
let status = response.status;
response = await response.json();
if (status === 200) {
Expand Down

0 comments on commit d7680a9

Please sign in to comment.