mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
fix markup
This commit is contained in:
parent
6ed10b95b7
commit
e2ebe0f8f7
1 changed files with 3 additions and 3 deletions
|
@ -217,7 +217,7 @@ Note that the public directory name is not included in the URL. A file
|
||||||
<tt>http://example.com/css/style.css</tt>.
|
<tt>http://example.com/css/style.css</tt>.
|
||||||
|
|
||||||
Use the <tt>:static_cache_control</tt> setting (see below) to add
|
Use the <tt>:static_cache_control</tt> setting (see below) to add
|
||||||
+Cache-Control+ header info.
|
<tt>Cache-Control</tt> header info.
|
||||||
|
|
||||||
== Views / Templates
|
== Views / Templates
|
||||||
|
|
||||||
|
@ -938,7 +938,7 @@ try {rack-cache}[http://rtomayko.github.com/rack-cache/]:
|
||||||
end
|
end
|
||||||
|
|
||||||
Use the <tt>:static_cache_control</tt> setting (see below) to add
|
Use the <tt>:static_cache_control</tt> setting (see below) to add
|
||||||
+Cache-Control+ header info to static files.
|
<tt>Cache-Control</tt> header info to static files.
|
||||||
|
|
||||||
=== Sending Files
|
=== Sending Files
|
||||||
|
|
||||||
|
@ -1214,7 +1214,7 @@ You can access those options via <tt>settings</tt>:
|
||||||
modular apps.
|
modular apps.
|
||||||
|
|
||||||
[static_cache_control] When Sinatra is serving static files, set this to add
|
[static_cache_control] When Sinatra is serving static files, set this to add
|
||||||
+Cache-Control+ headers to the responses. Uses the
|
<tt>Cache-Control</tt> headers to the responses. Uses the
|
||||||
+cache_control+ helper. Disabled by default.
|
+cache_control+ helper. Disabled by default.
|
||||||
Use an explicit array when setting multiple values:
|
Use an explicit array when setting multiple values:
|
||||||
<tt>set :static_cache_control, [:public, :max_age => 300]</tt>
|
<tt>set :static_cache_control, [:public, :max_age => 300]</tt>
|
||||||
|
|
Loading…
Reference in a new issue