mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 16:36:43 -06:00
[Client] Fix bug
Disable cache
This commit is contained in:
parent
1a8e5da3f9
commit
88566e2851
1 changed files with 8 additions and 1 deletions
|
@ -78,7 +78,14 @@
|
|||
});
|
||||
|
||||
this.fetch = () => {
|
||||
fetch(`https://api.rss2json.com/v1/api.json?rss_url=${this.url}`).then(res => {
|
||||
const headers = new Headers();
|
||||
headers.append('pragma', 'no-cache');
|
||||
headers.append('cache-control', 'no-cache');
|
||||
|
||||
fetch(`https://api.rss2json.com/v1/api.json?rss_url=${this.url}`, {
|
||||
method: 'GET',
|
||||
headers
|
||||
}).then(res => {
|
||||
res.json().then(feed => {
|
||||
this.update({
|
||||
initializing: false,
|
||||
|
|
Loading…
Reference in a new issue