mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Removed cache buster from client extensions script (#20668)
ref
https://linear.app/tryghost/issue/PA-71/remove-cache-bust-from-projs-in-admin
ref
15ed2eb245
- This cache buster was added in March to mitigate a client side error in pro.js,
to effectively force browsers to redownload the fixed version of the file.
- It's not needed anymore, as the error has been fixed for a few months
now, so we can safely remove it.
This commit is contained in:
parent
23458c664a
commit
71d830e1c9
@ -27,10 +27,6 @@ export default class ApplicationController extends Controller {
|
|||||||
return this.config.clientExtensions?.script;
|
return this.config.clientExtensions?.script;
|
||||||
}
|
}
|
||||||
|
|
||||||
get cacheBuster() {
|
|
||||||
return Date.now();
|
|
||||||
}
|
|
||||||
|
|
||||||
get showNavMenu() {
|
get showNavMenu() {
|
||||||
let {router, session, ui} = this;
|
let {router, session, ui} = this;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
{{#if this.showScriptExtension}}
|
{{#if this.showScriptExtension}}
|
||||||
{{{this.showScriptExtension.container}}}
|
{{{this.showScriptExtension.container}}}
|
||||||
{{!-- template-lint-disable no-forbidden-elements --}}
|
{{!-- template-lint-disable no-forbidden-elements --}}
|
||||||
<script src="{{this.showScriptExtension.src}}?v={{this.cacheBuster}}"></script>
|
<script src="{{this.showScriptExtension.src}}"></script>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if this.settings.accentColor}}
|
{{#if this.settings.accentColor}}
|
||||||
|
Loading…
Reference in New Issue
Block a user