mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Set images cache expiry time to 300000 seconds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user