Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9bb2d37f103e6c1738583bb585ab00e3ad691a6c 1 parent 56acc14
@Montellese authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/network/WebServer.cpp
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.