Skip to content

Commit 1bdf7e8

Browse files
authored
Add cache busting param to frankdoc url (#191)
1 parent 21936e1 commit 1bdf7e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

frank-doc-frontend/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ Thumbs.db
4545
# Maven
4646
node/
4747
target/
48+
49+
# Frank!Doc
50+
/src/js/frankdoc.json

frank-doc-frontend/src/app/app.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export class AppService {
2626
constructor(private http: HttpClient) {}
2727

2828
private getFrankDoc(): Observable<FrankDoc> {
29-
return this.http.get<FrankDoc>(environment.frankDocUrl);
29+
return this.http.get<FrankDoc>(
30+
`${environment.frankDocUrl}?cache=${Date.now()}`
31+
);
3032
}
3133

3234
showHideDeprecated(): void {

0 commit comments

Comments
 (0)