Set images cache expiry time to 300000 seconds

This commit is contained in:
buinsky 2014-11-25 12:50:14 +03:00
parent 632fd84e54
commit b0e138d669
2 changed files with 4 additions and 0 deletions

View file

@ -94,6 +94,9 @@ void AbstractRequestHandler::print_impl(const QByteArray& data, const QString& t
if (!response_.headers.contains(HEADER_CONTENT_TYPE))
response_.headers[HEADER_CONTENT_TYPE] = type;
if (type.indexOf("image") > -1)
response_.headers[HEADER_CACHE_CONTROL] = "max-age=3000000";
response_.content += data;
}