Project

General

Profile

Actions

サポート #203

closed

varnishの挙動、設定についてメモ

サポート #203: varnishの挙動、設定についてメモ

Added by Clelia ごりゅ over 11 years ago. Updated about 5 years ago.

Status:
終了
Priority:
通常
Start date:
02/20/2015
Due date:
02/28/2015
% Done:

0%

Estimated time:

Description

キャッシュの制御

キャッシュが無かったりして、バックのapacheからデータを取ってくる処理
「vcl_fetch」の部分にキャッシュ制御用の処理を書く

  • キャッシュの有効期限を自分で指定する
    set beresp.ttl = 300s
  • 指定しない場合のキャッシュの有効期限の優先順位(上から順)
    • The s-maxage variable in the Cache-Control response header
    • The max-age variable in the Cache-Control response header
    • The Expires response header
    • The default_ttl parameter.
  • Varnishのドキュメントより
    https://www.varnish-software.com/static/book/VCL_Basics.html

Updated by Clelia ごりゅ about 5 years ago Actions #1

  • Status changed from 新規 to 終了
Actions

Also available in: PDF Atom