26th Thu
CacheのExpiresを設定する方法のメモ
MerbでExpiresやCache-Controlを設定する場合、
アクションメソッドの中で、以下のようにすれば良いようです。
ruby>>
headers['Cache-Control'] = 'public'
headers['Expires'] = 3.days.from_now.utc.rfc2822
<<--
posted by
genki on Thu 26 Feb 2009 at 18:40 with 0 comments