From 62df38d08307b262c0db93e4fb28e844e31eff2d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 31 Mar 2023 15:26:59 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/servertools/classes.server.ts | 3 +++ ts_web/00_commitinfo_data.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index ffe34c0..093fa1d 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.46', + version: '2.0.47', description: 'easy serving of static files' } diff --git a/ts/servertools/classes.server.ts b/ts/servertools/classes.server.ts index 1b6e00b..d7e053f 100644 --- a/ts/servertools/classes.server.ts +++ b/ts/servertools/classes.server.ts @@ -140,6 +140,9 @@ export class Server { res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin'); res.setHeader('Cross-Origin-Embedder-Policy', 'unsafe-none'); res.setHeader('Access-Control-Allow-Origin', '*'); + res.setHeader('SERVEZONE_ROUTE', 'LOSSLESS_ORIGIN_CONTAINER'); + res.setHeader('Cache-Control', 'no-cache'); + res.setHeader('Expires', new Date(Date.now()).toUTCString()); next(); }); diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index ffe34c0..093fa1d 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.46', + version: '2.0.47', description: 'easy serving of static files' }