Skip to content

Commit

Permalink
core: frontend: add cache-busting
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jul 28, 2023
1 parent d5e9811 commit 75c1b8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/frontend/src/views/ExtensionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default Vue.extend({
data() {
return {
detected_port: undefined as number | undefined,
cache_busting_time: Date.now(),
}
},
computed: {
Expand All @@ -33,6 +34,7 @@ export default Vue.extend({
},
service_path(): string {
return `${window.location.protocol}//${window.location.hostname}:${this.detected_port}`
+ `?time=${this.cache_busting_time}`
},
},
watch: {
Expand Down

0 comments on commit 75c1b8b

Please sign in to comment.