Skip to content

Commit

Permalink
add vary to fix routines cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMattiussi committed Sep 22, 2023
1 parent bccc684 commit 61b99e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/controller/api/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ app.use(
maxAge: config.cache.maxAge,
}),
);

app.use(async (ctx, next) => {
await next();
ctx.response.set('Vary', 'X-Lodex-Tenant');
});

app.use(route.get('/', getScripts));
app.use(route.get('/:scriptNameCalled', middlewareScript));
app.use(route.get('/:scriptNameCalled/*', middlewareScript));
Expand Down

0 comments on commit 61b99e7

Please sign in to comment.