WebSockets: add some TO DO comments

This commit is contained in:
Luciano Iam 2020-04-22 11:26:51 +02:00 committed by Robin Gareus
parent 8b65b0a961
commit c362605b49
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 8 additions and 1 deletions

View file

@ -72,6 +72,9 @@ WebsocketsServer::WebsocketsServer (ArdourSurface::ArdourWebsockets& surface)
_lws_mnt_root.origin = _resources.index_dir ().c_str ();
_lws_mnt_root.origin_protocol = LWSMPRO_FILE;
_lws_mnt_root.def = "index.html";
/* do not send caching headers if NDEBUG is set, this is useful while
* developing web surfaces. Ideally this would exist as a configurable
* option in the TO DO surface settings UI */
#ifdef NDEBUG
_lws_mnt_root.cache_max_age = 3600;
_lws_mnt_root.cache_reusable = 1;