0
0
Fork 0

Set a specific S3 expiration time so that files can be cached

This commit is contained in:
Eugen Rochko 2016-12-04 12:58:35 +01:00
parent 80c44ed9c1
commit 24e692b0cf
10 changed files with 15 additions and 15 deletions

View file

@ -5,7 +5,7 @@ module ApplicationHelper
current_page?(path) ? 'active' : ''
end
def id_paginate(path, per_page, collection)
# todo
def s3_expiry
Time.zone.now.beginning_of_day.since 25.hours
end
end