module Qeweney::StaticFileCaching
Public Class Methods
file_stat_to_etag(stat)
click to toggle source
# File lib/qeweney/response.rb, line 14 def file_stat_to_etag(stat) "#{stat.mtime.to_i.to_s(36)}#{stat.size.to_s(36)}" end
file_stat_to_last_modified(stat)
click to toggle source
# File lib/qeweney/response.rb, line 18 def file_stat_to_last_modified(stat) stat.mtime.httpdate end