From 71d830e1c9c8840ef6ea4125814b658fcea4d21b Mon Sep 17 00:00:00 2001 From: Chris Raible Date: Thu, 25 Jul 2024 15:40:12 -0700 Subject: [PATCH] Removed cache buster from client extensions script (#20668) ref https://linear.app/tryghost/issue/PA-71/remove-cache-bust-from-projs-in-admin ref https://github.com/TryGhost/Ghost/commit/15ed2eb245d880a292375a18c61444eff7da66f0 - 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. --- ghost/admin/app/controllers/application.js | 4 ---- ghost/admin/app/templates/application.hbs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ghost/admin/app/controllers/application.js b/ghost/admin/app/controllers/application.js index 6c15e2840d..c014d571aa 100644 --- a/ghost/admin/app/controllers/application.js +++ b/ghost/admin/app/controllers/application.js @@ -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; diff --git a/ghost/admin/app/templates/application.hbs b/ghost/admin/app/templates/application.hbs index dbc514172e..fe955babf1 100644 --- a/ghost/admin/app/templates/application.hbs +++ b/ghost/admin/app/templates/application.hbs @@ -40,7 +40,7 @@ {{#if this.showScriptExtension}} {{{this.showScriptExtension.container}}} {{!-- template-lint-disable no-forbidden-elements --}} - + {{/if}} {{#if this.settings.accentColor}}