Fix[1] HTTP Cache-Control headers for static files served by webadmin.

[1] http://www.mnot.net/cache_docs/#CACHE-CONTROL


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1719 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-01-24 16:05:21 +00:00
parent ae29c50eb4
commit ceaa6234f0
+1 -1
View File
@@ -166,7 +166,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) {
sETag = "-" + CString(iMTime); // lighttpd style ETag
AddHeader("ETag", "\"" + sETag + "\"");
AddHeader("Cache-Control", "private");
AddHeader("Cache-Control", "public");
if (!m_sIfNoneMatch.empty()) {
m_sIfNoneMatch.Trim("\\\"'");