Skip to content

Japanese Translation: ja/caching.md #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2017
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions ja/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Vue の SSR は非常に高速ですが、コンポーネントインスタン
```js
const microCache = LRU({
max: 100,
maxAge: 1000 // Important: entries expires after 1 second.
maxAge: 1000 // 重要: エントリーは1秒後に期限切れになります。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

entries の訳ですが、翻訳の方は少し補足する形です、コンテンツの登録内容 した方がユーザーフレンドリーなので、そうしましょう!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そうですね、そうしましょう!

})
const isCacheable = req => {
// implement logic to check if the request is user-specific.
// only non-user-specific pages are cache-able
// リクエストがユーザー固有のものかどうかチェックするロジックを実装します。
// ユーザー固有でないページのみがキャッシュ可能です。
}
server.get('*', (req, res) => {
const cacheable = isCacheable(req)
Expand Down