hydeweb 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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