mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Set images cache expiry time to 300000 seconds
This commit is contained in:
parent
632fd84e54
commit
b0e138d669
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue