|
@@ -15,10 +15,10 @@
|
|
%% @doc Static resource handler.
|
|
%% @doc Static resource handler.
|
|
%%
|
|
%%
|
|
%% This built in HTTP handler provides a simple file serving capability for
|
|
%% This built in HTTP handler provides a simple file serving capability for
|
|
-%% cowboy applications. It should be considered an experimental feature because
|
|
|
|
-%% of it's dependency on the experimental REST handler. It's recommended to be
|
|
|
|
-%% used for small or temporary environments where it is not preferrable to set
|
|
|
|
-%% up a second server just to serve files.
|
|
|
|
|
|
+%% cowboy applications. It is provided as a convenience for small or temporary
|
|
|
|
+%% environments where it is not preferrable to set up a second server just
|
|
|
|
+%% to serve files. It is recommended to use a CDN instead for efficiently
|
|
|
|
+%% handling static files, preferrably on a cookie-less domain name.
|
|
%%
|
|
%%
|
|
%% If this handler is used the Erlang node running the cowboy application must
|
|
%% If this handler is used the Erlang node running the cowboy application must
|
|
%% be configured to use an async thread pool. This is configured by adding the
|
|
%% be configured to use an async thread pool. This is configured by adding the
|