Skip to content

Commit

Permalink
prevent cache
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Feb 21, 2024
1 parent 3bad737 commit e440455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/src/pages/[organism]/submit/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const accessToken = getAccessToken(Astro.locals.session)!;
const groupsResult = await GroupManagementClient.create().getGroupsOfUser(accessToken);
const clientConfig = getRuntimeConfig().public;
// Prevent caching to allow back button after user creates group
Astro.response.headers.append('Cache-Control', 'no-cache, no-store, must-revalidate');
Astro.response.headers.append('Pragma', 'no-cache');
Astro.response.headers.append('Expires', '0');
---

<BaseLayout title='Submit'>
Expand Down

0 comments on commit e440455

Please sign in to comment.