mirror of
https://github.com/znc/znc.git
synced 2026-07-05 01:11:53 +02:00
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:
+1
-1
@@ -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("\\\"'");
|
||||
|
||||
Reference in New Issue
Block a user