Skip to content

Commit 72a097a

Browse files
committed
Change caching
1 parent 339d494 commit 72a097a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

features/live-stats/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function ({ feature, console }) {
1616
await fetch(
1717
`https://api.scratch.mit.edu/projects/${
1818
window.location.pathname.split("/")[2]
19-
}/?nocache=${Date.now().toString()}`
19+
}/?avoid_cache=${Date.now().toString()}`
2020
)
2121
).json();
2222

features/turbowarp-button-in-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (
1616
await fetch(
1717
`https://api.scratch.mit.edu/projects/${
1818
window.location.pathname.split("/")[2]
19-
}?nocache=${Date.now()}`,
19+
}?avoid_cache=${Date.now()}`,
2020
{
2121
headers: {
2222
"x-token": ScratchTools.Auth.user.token,

features/unlisted-projects/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ async function getToken(projectId) {
22
let projectToken = (
33
await (
44
await fetch(
5-
`https://api.scratch.mit.edu/projects/${projectId}?nocache=${Date.now()}`,
5+
`https://api.scratch.mit.edu/projects/${projectId}?avoid_cache=${Date.now()}`,
66
{
77
headers: {
88
"x-token": ScratchTools.Auth.user.token,

0 commit comments

Comments
 (0)