mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 09:13:15 +03:00
refactor: enum casing (#19946)
This commit is contained in:
@@ -34,9 +34,9 @@ type SendFile = Parameters<Response['sendFile']>;
|
||||
type SendFileOptions = SendFile[1];
|
||||
|
||||
const cacheControlHeaders: Record<CacheControl, string | null> = {
|
||||
[CacheControl.PRIVATE_WITH_CACHE]: 'private, max-age=86400, no-transform',
|
||||
[CacheControl.PRIVATE_WITHOUT_CACHE]: 'private, no-cache, no-transform',
|
||||
[CacheControl.NONE]: null, // falsy value to prevent adding Cache-Control header
|
||||
[CacheControl.PrivateWithCache]: 'private, max-age=86400, no-transform',
|
||||
[CacheControl.PrivateWithoutCache]: 'private, no-cache, no-transform',
|
||||
[CacheControl.None]: null, // falsy value to prevent adding Cache-Control header
|
||||
};
|
||||
|
||||
export const sendFile = async (
|
||||
|
||||
Reference in New Issue
Block a user