(res)
| 74 | // accept-language is truncated to one of our available languages |
| 75 | // https://bit.ly/3u5UeRN |
| 76 | export function languageCacheControl(res) { |
| 77 | defaultCacheControl(res) |
| 78 | res.set('vary', 'accept-language, x-user-language') |
| 79 | } |
| 80 | |
| 81 | // Long cache control for versioned assets: images, CSS, JS... |
| 82 | export const assetCacheControl = cacheControlFactory(60 * 60 * 24 * 7, { immutable: true }) |
no test coverage detected