hydeweb 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/data/new_site/config.ru +2 -0
- data/lib/hyde/server.rb +1 -1
- data/lib/hyde.rb +1 -1
- metadata +1 -1
data/data/new_site/config.ru
CHANGED
data/lib/hyde/server.rb
CHANGED
@@ -51,7 +51,7 @@ class Hyde
|
|
51
51
|
# Make the clients use If-Modified-Since
|
52
52
|
res['Cache-Control'] = 'max-age=86400, public, must-revalidate'
|
53
53
|
|
54
|
-
mtime = [server.options[:last_modified], File.mtime(page.file)].compact.max
|
54
|
+
mtime = [server.options[:last_modified].to_i, File.mtime(page.file).to_i].compact.max
|
55
55
|
res['Last-Modified'] = mtime.to_s if mtime
|
56
56
|
|
57
57
|
# Get the MIME type from Hyde, then fallback to Rack
|
data/lib/hyde.rb
CHANGED