diff --git a/angular.json b/angular.json index 01895f10..46c70b10 100644 --- a/angular.json +++ b/angular.json @@ -93,6 +93,7 @@ "polyfills": "src/frontend/polyfills.ts", "assets": [ "src/frontend/assets", + "src/frontend/robots.txt", { "glob": "**/*", "input": "node_modules/leaflet/dist/images/", diff --git a/src/backend/routes/PublicRouter.ts b/src/backend/routes/PublicRouter.ts index e0fb6f90..e1a459f1 100644 --- a/src/backend/routes/PublicRouter.ts +++ b/src/backend/routes/PublicRouter.ts @@ -44,6 +44,7 @@ export class PublicRouter { next(); }; + // index.html should not be cached as it contains template that can change const renderIndex = (req: Request, res: Response, next: NextFunction) => { ejs.renderFile( path.join(ProjectPath.FrontendFolder, req.localePath, 'index.html'),