diff --git a/package.json b/package.json index db3f26e9b1..69d84d4b99 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.13-rc.9", + "version": "12.119.0-calc.13-rc.10", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index cd8d6f530b..c81506384c 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -42,9 +42,6 @@ const app = new Koa(); //#region Bull Dashboard const bullBoardPath = '/queue'; - // used as a url param to prevent caching css and images - const nowDateMs = Date.now(); - // Authenticate app.use(async (ctx, next) => { if (ctx.path === bullBoardPath || ctx.path.startsWith(bullBoardPath + '/')) { @@ -298,7 +295,6 @@ router.get(['/@:user', '/@:user/:sub'], async (ctx, next) => { icon: meta.iconUrl, themeColor: meta.themeColor, privateMode: meta.privateMode, - nowDateMs: nowDateMs, }); ctx.set('Cache-Control', 'public, max-age=15'); } else { @@ -344,7 +340,6 @@ router.get('/notes/:note', async (ctx, next) => { icon: meta.iconUrl, privateMode: meta.privateMode, themeColor: meta.themeColor, - nowDateMs: nowDateMs, }); ctx.set('Cache-Control', 'public, max-age=15'); @@ -382,7 +377,6 @@ router.get('/@:user/pages/:page', async (ctx, next) => { icon: meta.iconUrl, themeColor: meta.themeColor, privateMode: meta.privateMode, - nowDateMs: nowDateMs, }); if (['public'].includes(page.visibility)) { @@ -416,7 +410,6 @@ router.get('/clips/:clip', async (ctx, next) => { privateMode: meta.privateMode, icon: meta.iconUrl, themeColor: meta.themeColor, - nowDateMs: nowDateMs, }); ctx.set('Cache-Control', 'public, max-age=15'); @@ -443,7 +436,6 @@ router.get('/gallery/:post', async (ctx, next) => { icon: meta.iconUrl, themeColor: meta.themeColor, privateMode: meta.privateMode, - nowDateMs: nowDateMs, }); ctx.set('Cache-Control', 'public, max-age=15'); @@ -469,7 +461,6 @@ router.get('/channels/:channel', async (ctx, next) => { icon: meta.iconUrl, themeColor: meta.themeColor, privateMode: meta.privateMode, - nowDateMs: nowDateMs, }); ctx.set('Cache-Control', 'public, max-age=15'); @@ -545,7 +536,6 @@ router.get('(.*)', async ctx => { themeColor: meta.themeColor, randomMOTD: motd[Math.floor(Math.random() * motd.length)], privateMode: meta.privateMode, - nowDateMs: nowDateMs, }); ctx.set('Cache-Control', 'public, max-age=3'); }); diff --git a/packages/backend/src/server/web/views/base.pug b/packages/backend/src/server/web/views/base.pug index 3077006ffd..547fc34a89 100644 --- a/packages/backend/src/server/web/views/base.pug +++ b/packages/backend/src/server/web/views/base.pug @@ -20,23 +20,26 @@ doctype html html + - var timestamp = Date.now(); + head meta(charset='utf-8') meta(name='application-name' content='Calckey') meta(name='referrer' content='origin') + meta(name='darkreader-lock' content='') meta(name='theme-color' content= themeColor || '#31748f') meta(name='theme-color-orig' content= themeColor || '#31748f') meta(property='twitter:card' content='summary') meta(property='og:site_name' content= instanceName || 'Calckey') meta(name='viewport' content='width=device-width, initial-scale=1') - link(rel='icon' href= icon || `/favicon.ico?${ nowDateMs }`) - link(rel='apple-touch-icon' href= icon || `/apple-touch-icon.png?${ nowDateMs }`) + link(rel='icon' href= icon || `/favicon.ico?${ timestamp }`) + link(rel='apple-touch-icon' href= icon || `/apple-touch-icon.png?${ timestamp }`) link(rel='manifest' href='/manifest.json') - link(rel='prefetch' href=`/static-assets/badges/info.png?${ nowDateMs }`) - link(rel='prefetch' href=`/static-assets/badges/not-found.png?${ nowDateMs }`) - link(rel='prefetch' href=`/static-assets/badges/error.png?${ nowDateMs }`) + link(rel='prefetch' href=`/static-assets/badges/info.png?${ timestamp }`) + link(rel='prefetch' href=`/static-assets/badges/not-found.png?${ timestamp }`) + link(rel='prefetch' href=`/static-assets/badges/error.png?${ timestamp }`) link(rel='stylesheet' href='/assets/phosphor/icons.css') - link(rel='stylesheet' href=`/static-assets/instance.css?${ nowDateMs }`) + link(rel='stylesheet' href=`/static-assets/instance.css?${ timestamp }`) link(rel='modulepreload' href=`/assets/${clientEntry.file}`) each href in clientEntry.css @@ -77,7 +80,7 @@ html br | Please turn on your JavaScript div#splash - img#splashIcon(src= splashIcon || `/static-assets/splash.png?${ nowDateMs }`) + img#splashIcon(src= splashIcon || `/static-assets/splash.png?${ timestamp }`) span#splashText block randomMOTD = randomMOTD diff --git a/packages/client/src/components/MkTutorialDialog.vue b/packages/client/src/components/MkTutorialDialog.vue index 607006766b..0160ace21d 100644 --- a/packages/client/src/components/MkTutorialDialog.vue +++ b/packages/client/src/components/MkTutorialDialog.vue @@ -2,7 +2,7 @@ diff --git a/packages/client/src/pages/explore.users.vue b/packages/client/src/pages/explore.users.vue index 26cc4af35d..9bea45e86e 100644 --- a/packages/client/src/pages/explore.users.vue +++ b/packages/client/src/pages/explore.users.vue @@ -84,10 +84,6 @@ watch(() => props.tag, () => { if (tagsEl) tagsEl.toggleContent(props.tag == null); }); -watch(() => pinnedUsersList, () => { - if (pinnedUsersList?.length > 0) thereArePinnedUsers = true; -}); - const tagUsers = $computed(() => ({ endpoint: 'hashtags/users' as const, limit: 30,