Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(unreleased)
------------------
* センシティブフラグの判定を `<meta property="rating">` および `rating` ヘッダでも行うように
* 内蔵サーバー:レスポンスに`Cache-Control`ヘッダを含むように
* Bluesky(bsky.app)のプレビューに対応
* `fediverse:creator` のパースに対応
* 依存関係の更新
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ export default function (fastify: FastifyInstance, options: SummalyOptions, done
});
}

reply.header('Cache-Control', 'public, max-age=86400, stale-while-revalidate=43200, immutable');
Comment thread
kakkokari-gtyih marked this conversation as resolved.
Outdated

try {
const summary = await summaly(url, {
lang: req.query.lang as string,
Expand Down