liquid_feedback_frontend
diff app/main/member_image/show.lua @ 148:034f96181e59
gui part for autosupport
autosupport lets you automaticly support any new draft of an initiative
autosupport lets you automaticly support any new draft of an initiative
| author | Daniel Poelzleithner <poelzi@poelzi.org> |
|---|---|
| date | Fri Oct 08 02:49:53 2010 +0200 (2010-10-08) |
| parents | 88ac7798b562 |
| children | f52f918b38b8 |
line diff
1.1 --- a/app/main/member_image/show.lua Thu Oct 07 04:45:06 2010 +0200 1.2 +++ b/app/main/member_image/show.lua Fri Oct 08 02:49:53 2010 +0200 1.3 @@ -1,6 +1,8 @@ 1.4 local image_type = param.get("image_type") 1.5 local record = MemberImage:by_pk(param.get_id(), image_type, true) 1.6 1.7 +print('Cache-Control: max-age=300'); -- let the client cache the image for 5 minutes 1.8 + 1.9 if record == nil then 1.10 local default_file = config.member_image_default_file[image_type] 1.11 if default_file then