MOD Gui support.

This commit is contained in:
Robin E. R. Davies
2025-07-10 11:37:02 -04:00
parent e7cdd38056
commit 890368352f
45 changed files with 1971 additions and 806 deletions
+2
View File
@@ -103,6 +103,8 @@ static void setCacheControl(HttpResponse &res, const fs::path &path)
res.set("Cache-Control", "public, max-age=31536000"); // 1 month
auto lastModified = std::filesystem::last_write_time(path);
res.set(HttpField::LastModified, HtmlHelper::timeToHttpDate(lastModified));
// Set ETag for cache validation
res.set("ETag", pipedal::HtmlHelper::generateEtag(path));
}
else
{