Skip to content

Commit

Permalink
No cache on fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfriefeldt committed Dec 2, 2023
1 parent cefb02d commit e005c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { PageServerLoad } from '@analogjs/router';
import { Company } from '../shared/entities';

export const load = async ({ fetch }: PageServerLoad): Promise<Company[]> => {
return await fetch('/api/v1/companies');
return await fetch('/api/v1/companies', { cache: 'no-store' });
};

0 comments on commit e005c3c

Please sign in to comment.