UNPKG

node-web-mvc

Version:
15 lines (14 loc) 532 B
/** * @module ResourceCacheControl * @description 静态资源缓存配置 */ import CacheControl from '../http/CacheControl'; import HttpServletRequest from '../http/HttpServletRequest'; import HttpServletResponse from '../http/HttpServletResponse'; export default class ResourceCacheControl { private readonly request; private readonly response; private readonly cacheControl; constructor(request: HttpServletRequest, response: HttpServletResponse, cacheControl: CacheControl); applyCacheControl(): void; }