Images cache control code edit

This commit is contained in:
buinsky 2014-12-07 23:50:06 +03:00
parent dbc5ffee75
commit ba40408c8d
2 changed files with 3 additions and 3 deletions

View file

@ -92,9 +92,6 @@ 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;
}