差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| study:php5:cache_control [2010/08/06 02:38] – created banana | study:php5:cache_control [2010/08/06 02:55] (現在) – banana | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| ===== nocache control ===== | ===== nocache control ===== | ||
| - | クライアント、プロキシにキャッシュさせないときのコードを次に示す。 | + | クライアント、プロキシにキャッシュを無効化するためのコードを次に示す。 |
| - | < | + | < |
| header(' | header(' | ||
| header(' | header(' | ||
| 行 10: | 行 10: | ||
| header(' | header(' | ||
| </ | </ | ||
| + | |||
| + | ===== private cache control ===== | ||
| + | 共有されないキャッシュを指定する場合のコードを次に示す。 | ||
| + | <code php> | ||
| + | $cache_expire = session_cache_expire() * 60; | ||
| + | header(' | ||
| + | header(' | ||
| + | header(" | ||
| + | header(' | ||
| + | </ | ||
| + | |||
| + | ===== reference ===== | ||
| + | - [[http:// | ||