Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/lib/store/middleware/websocketMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ import { uiActions, UiConfigState } from '../ui/ui.slice';

const httpClient = axios.create();

// Add a random query parameter to every request to bust processor/browser caches
httpClient.interceptors.request.use((config) => {
Comment thread
equinoy marked this conversation as resolved.
config.params = {
...config.params,
_: Date.now().toString(36) + Math.random().toString(36).slice(2),
};
return config;
});

// Define RootState locally to avoid circular dependency
type LocalRootState = {
appConfig: AppConfigState;
Expand Down
Loading