Skip to content

Commit 5ec3ecd

Browse files
authored
Disable cashe but this time correct method
1 parent 6c26578 commit 5ec3ecd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/modrinth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export interface VersionFile {
2222

2323
export async function get_project(id: string): Promise<Project> {
2424
const resp = await fetch(`https://api.modrinth.com/v2/project/${id}`, {
25-
cache: "no-store",
2625
headers: {
2726
'User-Agent': `Paigaldaja/${await getVersion()} (+https://github.com/Fabulously-Optimized/vanilla-installer-rust)`
2827
}
@@ -32,6 +31,7 @@ export async function get_project(id: string): Promise<Project> {
3231

3332
export async function list_versions(id: string): Promise<Version[]> {
3433
const resp = await fetch(`https://api.modrinth.com/v2/project/${id}/version?include_changelog=false`, {
34+
cache: "no-store",
3535
headers: {
3636
'User-Agent': `Paigaldaja/${await getVersion()} (+https://github.com/Fabulously-Optimized/vanilla-installer-rust)`
3737
}

0 commit comments

Comments
 (0)