изменил политику кеширования, убрал строковые константы из статистик (пилоты, размер кадра)
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -105,17 +105,11 @@ public:
|
||||
sf->registerFile(VUE_JS, mime_types::javascript, true);
|
||||
sf->registerFile(KB_MP4, mime_types::video_mp4, true);
|
||||
|
||||
#if USE_DEBUG
|
||||
constexpr bool allowCacheCss = false;
|
||||
#else
|
||||
constexpr bool allowCacheCss = true;
|
||||
#endif
|
||||
sf->registerFile(STYLE_CSS, mime_types::text_css, true);
|
||||
sf->registerFile(FIELDS_CSS, mime_types::text_css, true);
|
||||
|
||||
sf->registerFile(INDEX_HTML, mime_types::text_html, allowCacheCss);
|
||||
sf->registerFile(LOGIN_HTML, mime_types::text_html, allowCacheCss);
|
||||
|
||||
sf->registerFile(STYLE_CSS, mime_types::text_css, allowCacheCss);
|
||||
sf->registerFile(FIELDS_CSS, mime_types::text_css, allowCacheCss);
|
||||
sf->registerFile(INDEX_HTML, mime_types::text_html, false);
|
||||
sf->registerFile(LOGIN_HTML, mime_types::text_html, true);
|
||||
}
|
||||
|
||||
void registerResources(http::server::Server& s) {
|
||||
|
||||
Reference in New Issue
Block a user