We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6262e8 commit fa0441aCopy full SHA for fa0441a
MyApp.Client/src/api.ts
@@ -9,7 +9,9 @@ export function useApp() {
9
async function load (force?:boolean) {
10
const { loadMetadata } = useMetadata()
11
await loadMetadata({
12
- olderThan: location.search.includes('clear=metadata') ? 0 : 60 * 60 * 1000 //1hr
+ olderThan: location.origin.includes('localhost') || location.search.includes('clear=metadata')
13
+ ? 0
14
+ : 60 * 60 * 1000 //1hr
15
})
16
}
17
0 commit comments