mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -221,6 +221,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) {
|
||||
if (iMTime > 0 && !m_bHTTP10Client) {
|
||||
sETag = "-" + CString(iMTime); // lighttpd style ETag
|
||||
|
||||
AddHeader("Last-Modified", GetDate(iMTime));
|
||||
AddHeader("ETag", "\"" + sETag + "\"");
|
||||
AddHeader("Cache-Control", "public");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user