From db75ca80e394b41b2b2d917b42cff655b2b948af Mon Sep 17 00:00:00 2001 From: Roman Letsuk Date: Mon, 14 Oct 2024 18:19:41 +0300 Subject: [PATCH] FIO-9006: fixed cached grid responses --- .../angular-formio/grid/src/form/FormGridBody.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/angular-formio/grid/src/form/FormGridBody.component.ts b/projects/angular-formio/grid/src/form/FormGridBody.component.ts index 41759dea..ae3ea5ff 100644 --- a/projects/angular-formio/grid/src/form/FormGridBody.component.ts +++ b/projects/angular-formio/grid/src/form/FormGridBody.component.ts @@ -17,7 +17,10 @@ export class FormGridBodyComponent extends GridBodyComponent implements OnDestro load(formio: FormioPromiseService, query?: any) { query = query || {}; - return formio.loadForms({ params: query }) + return formio.loadForms( + { params: query }, + { headers: { 'cache-control': 'no-cache' } }, + ) .then((forms: any) => this.setRows(query, forms)) .then(() => this.attachTooltips()); }