Skip to content

Commit

Permalink
no store for configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Revyn112 committed Nov 30, 2023
1 parent 90a18ae commit 298f04c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .github/CHANGELOG.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@


releases:
- name: 1.4.7
changes:
- title: Disable caching for fetching release configuration
categories: [ Core ]
- name: 1.4.6
changes:
- title: Update api-client
categories: [ Core ]
- name: 1.4.5
changes:
- title: Removes 'v' prefix from Version Numbers
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "headwind-installer",
"productName": "Headwind Installer",
"version": "1.4.5",
"version": "1.4.7",
"description": "Desktop application to install and customize Headwind addons",
"configUrls": {
"production": "https://cdn.headwindsim.net/installer/config/production.json",
Expand Down Expand Up @@ -110,7 +110,7 @@
"@ant-design/icons": "^4.4.0",
"@flybywiresim/fragmenter": "^0.7.4",
"@flybywiresim/react-components": "^0.2.5",
"@headwindsimulations/api-client": "^1.1.2",
"@headwindsimulations/api-client": "^1.1.3",
"@reduxjs/toolkit": "^1.7.1",
"@sentry/cli": "^2.5.0",
"@sentry/electron": "^3.0.7",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/SettingsSection/Developer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const index = (): JSX.Element => {

const validateUrl = () => {
try {
fetch(configDownloadUrl)
fetch(configDownloadUrl, {cache: "no-store"})
.then((response) => {
setConfigDownloadUrlValid(response.status === 200);
});
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/AddonData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class AddonData {
}

private static async latestVersionForCDN(track: AddonTrack): Promise<ReleaseInfo> {
return fetch(track.url + '/releases.yaml')
return fetch(track.url + '/releases.yaml', {cache: "no-store"})
.then(res => res.blob())
.then(blob => blob.text())
.then(stream => ({
Expand Down

0 comments on commit 298f04c

Please sign in to comment.