HTTPSock: Send Last-Modified headers for static files

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2246 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2011-01-03 15:21:30 +00:00
parent 9ef41ae6ad
commit 4e5f9e8602

View File

@@ -221,6 +221,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) {
if (iMTime > 0 && !m_bHTTP10Client) { if (iMTime > 0 && !m_bHTTP10Client) {
sETag = "-" + CString(iMTime); // lighttpd style ETag sETag = "-" + CString(iMTime); // lighttpd style ETag
AddHeader("Last-Modified", GetDate(iMTime));
AddHeader("ETag", "\"" + sETag + "\""); AddHeader("ETag", "\"" + sETag + "\"");
AddHeader("Cache-Control", "public"); AddHeader("Cache-Control", "public");