/** * Constants for the asset caching module * This file contains all constant values used throughout the asset cache system */ /** * Default cache name for the Cache Storage API */ declare const DEFAULT_CACHE_NAME = "asset-cache-v1"; /** * Default time to live for cached assets (in seconds) * 7 days */ declare const DEFAULT_CACHE_TTL: number; /** * Maximum size for cacheable assets (in bytes) * 50MB */ declare const MAX_CACHEABLE_SIZE: number; /** * Path to the cache manifest file */ declare const CACHE_MANIFEST_PATH = "/manifest.json"; /** * Default service worker scope */ declare const DEFAULT_SW_SCOPE = "/"; /** * Asset types that should use a cache-first strategy * These are typically static assets that don't change frequently */ declare const CACHE_FIRST_TYPES: string[]; /** * Asset types that should use a network-first strategy * These are typically large media files that benefit from fresh content */ declare const NETWORK_FIRST_TYPES: string[]; /** * Asset types that should use a stale-while-revalidate strategy * These are assets that can be served stale while being updated in background */ declare const STALE_WHILE_REVALIDATE_TYPES: string[]; /** * File extensions to MIME type mapping * Used to determine the correct content type for cached assets */ declare const FILE_EXTENSION_TO_ASSET_TYPE: Record; export { CACHE_MANIFEST_PATH as C, DEFAULT_CACHE_NAME as D, FILE_EXTENSION_TO_ASSET_TYPE as F, MAX_CACHEABLE_SIZE as M, NETWORK_FIRST_TYPES as N, STALE_WHILE_REVALIDATE_TYPES as S, DEFAULT_CACHE_TTL as a, DEFAULT_SW_SCOPE as b, CACHE_FIRST_TYPES as c };