Browse Source

SONAR-12258 Don't use cache on DocsVersions.json

tags/8.2.0.32929
Wouter Admiraal 4 years ago
parent
commit
3365182508
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      server/sonar-docs/src/components/Sidebar.tsx

+ 5
- 1
server/sonar-docs/src/components/Sidebar.tsx View File

@@ -78,7 +78,11 @@ export default class Sidebar extends React.PureComponent<Props, State> {
}

loadVersions() {
fetch('/DocsVersions.json')
const headers = new Headers([
['Cache-Control', 'no-cache'],
['Pragma', 'no-cache']
]);
fetch('/DocsVersions.json', { headers })
.then(response => response.json())
.then(json => {
this.setState({ loaded: true, versions: json });

Loading…
Cancel
Save