Skip to content

Commit 1ec5f42

Browse files
committed
Use Cylc-specific name for workspace layout cache
1 parent c4a692c commit 1ec5f42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/composables/cacheStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const fallbackStore = new Map()
2727
* @see https://developer.mozilla.org/en-US/docs/Web/API/Cache
2828
*/
2929
export function useWorkspaceLayoutsCache () {
30-
return window.caches?.open('workspace-layouts') ?? Promise.resolve({
30+
return window.caches?.open('cylc-workspace-layouts') ?? Promise.resolve({
3131
// Fallback for environments without Cache API support (e.g. Cypress Firefox on GH Actions).
3232
// Does not persist across page reloads, but oh well.
3333
async match (key) {

tests/e2e/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Cypress.Commands.add('clearLayoutsCache', () => {
4545
// Clear any stored workspace layouts
4646
cy.window().then((win) => new Cypress.Promise(
4747
(resolve) => {
48-
win.caches?.delete('workspace-layouts')?.then(resolve) ?? resolve()
48+
win.caches?.delete('cylc-workspace-layouts')?.then(resolve) ?? resolve()
4949
}
5050
))
5151
})

0 commit comments

Comments
 (0)