Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version JavaScript files to avoid caching issues #268

Closed
TimPurdum opened this issue Nov 30, 2023 · 0 comments · Fixed by #269
Closed

Version JavaScript files to avoid caching issues #268

TimPurdum opened this issue Nov 30, 2023 · 0 comments · Fixed by #269
Assignees

Comments

@TimPurdum
Copy link
Collaborator

We should add a versioned query param to the loading of the JavaScript modules to avoid issues with browsers caching an older version when an application is updated.

e.g. in JsModuleManager

return await jsRuntime
                    .InvokeAsync<IJSObjectReference>("import", cancellationToken, 
                        "./_content/dymaptic.GeoBlazor.Core/js/arcGisJsInterop.js?v=2.5.0");

The tricky part would be to set that version in code based on the Directory.Build.props environment variable CoreVersion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants