изменил политику кеширования, убрал строковые константы из статистик (пилоты, размер кадра)

This commit is contained in:
2024-11-12 14:13:07 +03:00
parent c0e7e1e300
commit 087da149f1
4 changed files with 47 additions and 42 deletions

View File

@@ -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) {