mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added date based cache buster to client script (#19873)
refs https://app.incident.io/ghost/incidents/39
This commit is contained in:
parent
6849aa9891
commit
15ed2eb245
2 changed files with 5 additions and 1 deletions
|
@ -27,6 +27,10 @@ export default class ApplicationController extends Controller {
|
|||
return this.config.clientExtensions?.script;
|
||||
}
|
||||
|
||||
get cacheBuster() {
|
||||
return Date.now();
|
||||
}
|
||||
|
||||
get showNavMenu() {
|
||||
let {router, session, ui} = this;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
{{#if this.showScriptExtension}}
|
||||
{{{this.showScriptExtension.container}}}
|
||||
{{!-- template-lint-disable no-forbidden-elements --}}
|
||||
<script src="{{this.showScriptExtension.src}}"></script>
|
||||
<script src="{{this.showScriptExtension.src}}?v={{this.cacheBuster}}"></script>
|
||||
{{/if}}
|
||||
|
||||
{{#if this.settings.accentColor}}
|
||||
|
|
Loading…
Reference in a new issue