Skip to content

Commit fa0441a

Browse files
committed
Update api.ts
1 parent d6262e8 commit fa0441a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MyApp.Client/src/api.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export function useApp() {
99
async function load (force?:boolean) {
1010
const { loadMetadata } = useMetadata()
1111
await loadMetadata({
12-
olderThan: location.search.includes('clear=metadata') ? 0 : 60 * 60 * 1000 //1hr
12+
olderThan: location.origin.includes('localhost') || location.search.includes('clear=metadata')
13+
? 0
14+
: 60 * 60 * 1000 //1hr
1315
})
1416
}
1517

0 commit comments

Comments
 (0)