Skip to content

Commit

Permalink
Removed cache 'no-store'
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalikmay committed Oct 25, 2024
1 parent a1bbab7 commit 6eb2616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seobot",
"version": "1.0.9",
"version": "1.0.10",
"description": "Client library for the SEObot API",
"main": "dist/index.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/blog/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export class BlogClient {
}

private async _fetchIndex(): Promise<Blog.IArticleIndex[]> {
const response = await fetch(`https://cdn.seobotai.com/${this._key}/system/base.json`, { cache: 'no-store' });
const response = await fetch(`https://cdn.seobotai.com/${this._key}/system/base.json`);
const index = (await response.json()) as Blog.IArticleIndexCompressed[];
return index.map(i => this._decompressIndex(i)).sort((a, b) => b.createdAt.localeCompare(a.createdAt));
}

private async _fetchArticle(id: string): Promise<Blog.IArticle> {
const postData = await fetch(`https://cdn.seobotai.com/${this._key}/blog/${id}.json`, { cache: 'no-store' });
const postData = await fetch(`https://cdn.seobotai.com/${this._key}/blog/${id}.json`);
const post = (await postData.json()) as Blog.IArticle;
return post;
}
Expand Down

0 comments on commit 6eb2616

Please sign in to comment.