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:
Chris Raible 2024-07-25 15:40:12 -07:00 committed by GitHub
parent 23458c664a
commit 71d830e1c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -27,10 +27,6 @@ export default class ApplicationController extends Controller {
return this.config.clientExtensions?.script;
}
get cacheBuster() {
return Date.now();
}
get showNavMenu() {
let {router, session, ui} = this;

View File

@ -40,7 +40,7 @@
{{#if this.showScriptExtension}}
{{{this.showScriptExtension.container}}}
{{!-- template-lint-disable no-forbidden-elements --}}
<script src="{{this.showScriptExtension.src}}?v={{this.cacheBuster}}"></script>
<script src="{{this.showScriptExtension.src}}"></script>
{{/if}}
{{#if this.settings.accentColor}}