Francesco Rodriguez
e4d5b69b57
rename page_cache_extension option to default_static_extension
2012-10-03 15:35:19 -05:00
Michael Reinsch
7d5fbf846b
fix ArgumentError being raised in case of invalid byte sequences
2012-03-08 20:41:25 +09:00
Andrew White
b9ad097565
Simplify regexp
2012-02-17 14:44:28 +00:00
Andrew White
ceb288b8ce
Fix ActionDispatch::Static to serve files with unencoded PCHAR
...
RFC 3986[1] allows sub-delim characters in path segments unencoded,
however Rack::File requires them to be encoded so we use URI's
unescape method to leave them alone and then escape them again.
Also since the path gets passed to Dir[] we need to escape any glob
characters in the path.
[1]: http://www.ietf.org/rfc/rfc3986.txt
2012-02-17 14:07:48 +00:00
Sergey Nartimov
d07b2f3e29
escape static file path to prevent double unescaping
2012-02-16 21:50:07 +03:00
Aaron Patterson
af8c54be0a
cache strings in the AST for faster comparison than include?
2011-05-03 09:59:21 -07:00
José Valim
e1c1685016
Static middleware accepts cache control.
2011-05-03 12:32:14 +02:00
José Valim
d5ad92ced1
Make static faster as we don't have to serve multiple paths anymore.
2011-04-15 20:09:39 +02:00
Aaron Patterson
50ed1a25a4
initialize ivars
2011-03-01 17:20:35 -08:00
Aaron Patterson
46bb424287
Revert "compute ext in initialize, and use an attr_reader"
...
This reverts commit 2dbb73bdda
.
Conflicts:
actionpack/lib/action_dispatch/middleware/static.rb
2011-02-28 19:47:09 -08:00
Aaron Patterson
f279422e33
no need to pass a regex to Regexp.compile
2011-02-28 18:03:06 -08:00
Aaron Patterson
2dbb73bdda
compute ext in initialize, and use an attr_reader
2011-02-28 17:54:00 -08:00
José Valim
0b51f3cc73
Ensure the proper content type is returned for static files.
2010-10-04 18:06:04 +02:00
José Valim
14f9904e0f
Avoid (@_var ||= nil) pattern by using initialize methods and ensuring everyone calls super as expected.
2010-09-29 11:18:31 +02:00
Emilio Tagua
eea61a030e
Initialize @compiled_at if it is not.
2010-09-28 16:24:42 -03:00
Piotr Sarnacki
c3c1a1e148
Do not use ActionController::Base.page_cache_extension in initialize to not load more ActiveSupport than we need
2010-09-04 00:07:38 +02:00
Piotr Sarnacki
9f0a1ae14e
Optimize ActionDispatch::Static
2010-09-04 00:07:34 +02:00
Piotr Sarnacki
401cd97923
Modified ActionDispatch::Static to allow passing multiple roots
2010-09-03 22:59:09 +02:00
Joshua Peek
ef58194129
Move Rails::Static into ActionDispatch
2009-09-26 11:37:42 -05:00