Instiki 0.16.5
Update to Rails 2.3.2 (the stable Rails 2.3 release). Add audio/speex support Update CHANGELOG Bump version number
This commit is contained in:
parent
801d307405
commit
e2ccdfd812
264 changed files with 4850 additions and 1906 deletions
|
@ -907,13 +907,15 @@ module ActionController #:nodoc:
|
|||
extra_options[:template] = options
|
||||
end
|
||||
|
||||
options = extra_options
|
||||
elsif !options.is_a?(Hash)
|
||||
extra_options[:partial] = options
|
||||
options = extra_options
|
||||
end
|
||||
|
||||
layout = pick_layout(options)
|
||||
response.layout = layout.path_without_format_and_extension if layout
|
||||
logger.info("Rendering template within #{layout.path_without_format_and_extension}") if logger && layout
|
||||
layout = layout.path_without_format_and_extension if layout
|
||||
|
||||
if content_type = options[:content_type]
|
||||
response.content_type = content_type.to_s
|
||||
|
@ -1206,10 +1208,12 @@ module ActionController #:nodoc:
|
|||
cache_control = response.headers["Cache-Control"].split(",").map {|k| k.strip }
|
||||
|
||||
cache_control << "max-age=#{seconds}"
|
||||
cache_control.delete("no-cache")
|
||||
if options[:public]
|
||||
cache_control.delete("private")
|
||||
cache_control.delete("no-cache")
|
||||
cache_control << "public"
|
||||
else
|
||||
cache_control << "private"
|
||||
end
|
||||
|
||||
# This allows for additional headers to be passed through like 'max-stale' => 5.hours
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue