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 all 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
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秒後に期限切れになります。
})
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