FIX: firebase cache

Better caching policies
This commit is contained in:
webfussel 2025-02-02 00:44:49 +01:00
parent 418a5a2d71
commit 386211b24b
2 changed files with 22 additions and 1 deletions

View file

@ -1 +1,3 @@
export const getImage = (path : string, img : string) => (size : '1x' | '2x' | '3x', set : boolean) => `${path}${img}@${size}.webp${set ? ` ${size}` : ''}`
export const getImage =
(path: string, img: string) => (size: "1x" | "2x" | "3x", set: boolean) =>
`${path}${img}@${size}.webp${set ? ` ${size}` : ""}`;