Permalink
Browse files

webserver: set the "Expires" header to 1 year in the future

  • Loading branch information...
1 parent 56acc14 commit 9bb2d37f103e6c1738583bb585ab00e3ad691a6c @Montellese committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/network/WebServer.cpp
@@ -391,7 +391,7 @@ int CWebServer::CreateFileDownloadResponse(struct MHD_Connection *connection, co
// set the Expires header
CDateTime expiryTime = CDateTime::GetCurrentDateTime();
- expiryTime += CDateTimeSpan(1, 0, 0, 0);
+ expiryTime += CDateTimeSpan(365, 0, 0, 0);
MHD_add_response_header(response, "Expires", expiryTime.GetAsRFC1123DateTime());
}
else

0 comments on commit 9bb2d37

Please sign in to comment.