mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Send Cache-Control header in WebUI responses
Tune the caching time to be shorter, in case there is a program update. Change the cacheability to private, as WebUI resources are not intended to be cached at proxy. For uncacheable responses, send out "no-store" explicitly to halt browser caching.
This commit is contained in:
parent
5f8feec1c1
commit
050b78f378
2 changed files with 26 additions and 8 deletions
|
@ -63,10 +63,12 @@ namespace Http
|
|||
const char HEADER_REQUEST_METHOD_POST[] = "POST";
|
||||
|
||||
const char CONTENT_TYPE_HTML[] = "text/html";
|
||||
const char CONTENT_TYPE_CSS[] = "text/css";
|
||||
const char CONTENT_TYPE_TXT[] = "text/plain";
|
||||
const char CONTENT_TYPE_JS[] = "application/javascript";
|
||||
const char CONTENT_TYPE_JSON[] = "application/json";
|
||||
const char CONTENT_TYPE_GIF[] = "image/gif";
|
||||
const char CONTENT_TYPE_PNG[] = "image/png";
|
||||
const char CONTENT_TYPE_TXT[] = "text/plain";
|
||||
const char CONTENT_TYPE_FORM_ENCODED[] = "application/x-www-form-urlencoded";
|
||||
const char CONTENT_TYPE_FORM_DATA[] = "multipart/form-data";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue