Skip to content

Commit 22781a9

Browse files
authored
Merge pull request #91 from aligent/hotfix/Disable-Maint-Cache
HOTFIX: Send cache-control headers when maint mode is enabled
2 parents f37df5e + 3cd92b8 commit 22781a9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/maintenance-mode-plugin/src/lib/maintenance-mode-plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export function maintenanceModePlugin(maintenanceFilePath: string): Plugin {
3434
endResponse(
3535
new fetchAPI.Response('In Maintenance Mode', {
3636
status: 503,
37+
headers: {
38+
'cache-control': 'no-cache, no-store'
39+
}
3740
})
3841
);
3942
}

0 commit comments

Comments
 (0)